/* ============================================================
   Zažij budoucnost: humanoid robot rental (demo). Vanilla CSS.
   ============================================================ */
:root {
  --ink:      #0C0D12;
  --ink-2:    #14151D;
  --paper:    #FAFAF8;
  --paper-2:  #F1F0EC;
  --card:     #FFFFFF;
  --line:     #E4E2DB;
  --line-dk:  #23242F;
  --muted:    #5E5D57;
  --muted-dk: #9A9AA6;
  --accent:   #6B4EFF;
  --accent-2: #9C8BFF;
  --accent-ink:#150C3D;
  --glow:     rgba(107, 78, 255, 0.35);
  --ok:       #1FB073;
  --display:  "Space Grotesk", system-ui, sans-serif;
  --sans:     "Inter", system-ui, sans-serif;
  --radius:   18px;
  --radius-sm:12px;
  --maxw:     1120px;
  --shadow:   0 1px 2px rgba(12,13,18,.04), 0 12px 32px rgba(12,13,18,.08);
  --shadow-lg:0 2px 6px rgba(12,13,18,.06), 0 30px 70px rgba(12,13,18,.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { margin: 12px 0 14px; }
.sec-head p { color: var(--muted); font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px var(--glow); }
.btn-primary:hover { background: #5a3ff0; box-shadow: 0 10px 30px var(--glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dk { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dk:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250,250,248,.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.brand .dot { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(107,78,255,.16); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) {
  .nav-inner .brand { font-size: 17px; }
  .nav-cta .btn { padding: 11px 16px; font-size: 14px; }
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1100px 560px at 78% -10%, rgba(107,78,255,.30), transparent 60%),
              linear-gradient(180deg, #0C0D12 0%, #101220 100%);
  color: #fff; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-dk);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(900px 520px at 75% 0%, #000, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 40px 92px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  color: var(--accent-2); background: rgba(107,78,255,.12); border: 1px solid rgba(156,139,255,.28);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(156,139,255,.55);} 70% { box-shadow: 0 0 0 9px rgba(156,139,255,0);} 100% { box-shadow: 0 0 0 0 rgba(156,139,255,0);} }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--accent-2); }
.hero-sub { color: var(--muted-dk); font-size: clamp(17px, 2vw, 20px); margin: 22px 0 32px; max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 130px; }
.hero-meta b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.hero-meta span { font-size: 13px; color: var(--muted-dk); }

.hero-visual { display: flex; flex-direction: column; }
.hero-frame {
  position: relative; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(160deg, #1a1c2b, #0e0f17);
  box-shadow: var(--shadow-lg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--muted-dk); text-align: center; padding: 24px;
}
.hero-frame .ph svg { opacity: .5; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 22px 64px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- logos / trust strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.strip-inner { display: flex; gap: 14px 36px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 22px 0; color: var(--muted); font-size: 14px; }
.strip-inner b { color: var(--ink); font-weight: 600; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); position: relative; }
.step-num { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* compact variant (jak to funguje) */
.sec-head-sm { margin-bottom: 28px; }
.sec-head-sm h2 { margin: 8px 0 0; }
.steps-compact { gap: 14px; }
.steps-compact .step { padding: 18px 18px; border-radius: var(--radius-sm); box-shadow: none; }
.steps-compact .step h3 { font-size: 16px; margin: 8px 0 5px; }
.steps-compact .step p { font-size: 14px; }
@media (max-width: 520px) { .steps-compact { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ---------- includes grid ---------- */
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inc { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow); }
.inc .ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(107,78,255,.1); color: var(--accent); }
.inc h3 { font-size: 16px; margin-bottom: 4px; }
.inc p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .includes { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } }

/* ---------- příležitosti ---------- */
.occasions { display: flex; flex-wrap: wrap; gap: 12px; }
.occ {
  font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; box-shadow: var(--shadow);
}
@media (max-width: 480px) { .occ { font-size: 14px; padding: 10px 15px; } }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: 1.05fr 1.05fr .9fr; gap: 18px; align-items: stretch; }
.pricing-2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative;
}
.price-card.anchor { background: linear-gradient(165deg, #14151D 0%, #0C0D12 100%); color: #fff; border-color: var(--line-dk); }
.price-card.anchor .price-tier, .price-card.anchor .price-desc { color: var(--muted-dk); }
.price-card.featured { border: 1.5px solid var(--accent); box-shadow: 0 2px 6px rgba(12,13,18,.06), 0 24px 60px var(--glow); transform: translateY(-6px); }
.price-tier { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-name { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 8px 0 4px; letter-spacing: -0.01em; }
.price-desc { color: var(--muted); font-size: 14.5px; min-height: 42px; }
.price-amount { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.price-amount .now { font-family: var(--display); font-size: 38px; font-weight: 600; letter-spacing: -0.02em; }
.price-amount .was { color: var(--muted); text-decoration: line-through; font-size: 17px; }
.price-card.anchor .price-amount .was { color: var(--muted-dk); }
.price-save {
  align-self: flex-start; display: inline-block; margin: 0 0 8px;
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .03em;
  color: var(--ok); background: rgba(31,176,115,.12); border: 1px solid rgba(31,176,115,.3);
  padding: 4px 11px; border-radius: 999px;
}
.price-card.anchor .price-save { color: #74e3b3; background: rgba(31,176,115,.14); border-color: rgba(31,176,115,.34); }
.price-unit { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.price-card.anchor .price-unit { color: var(--muted-dk); }
.feat-list { list-style: none; margin: 6px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.price-card.anchor .feat-list li { color: var(--muted-dk); }
.feat-list li svg { flex: 0 0 18px; margin-top: 2px; color: var(--accent); }
.price-card.anchor .feat-list li svg { color: var(--accent-2); }
.price-card .btn { margin-top: auto; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-family: var(--display); font-weight: 600;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px var(--glow); white-space: nowrap;
}
.badge-limited { background: #1f2230; color: var(--accent-2); border: 1px solid rgba(156,139,255,.4); box-shadow: none; }

/* price info box (íčko) */
.price-info { max-width: 760px; margin: 24px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-info > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 18px 22px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); }
.price-info > summary::-webkit-details-marker { display: none; }
.price-info > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--accent); transition: transform .2s; }
.price-info[open] > summary::after { content: "−"; }
.info-i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: rgba(107,78,255,.12); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 13px; }
.price-info-body { padding: 0 22px 22px; }
.price-info-body p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.price-info-body ul { margin: 0 0 12px 2px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.price-info-body li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; }
.price-info-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.price-info-body li b, .price-info-body p b { color: var(--ink); }

/* required asterisk + checkout billing details */
.req { color: var(--accent); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 12px; }
/* package picker radio cards */
.pkg-cards { display: grid; gap: 12px; }
.pkg-card { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); cursor: pointer; font-family: var(--sans); transition: border-color .15s, background .15s, box-shadow .15s; }
.pkg-card:hover { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px rgba(107,78,255,.12); }
.pkg-card:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,78,255,.14); }
.pkg-card .pkg-name { font-family: var(--display); font-weight: 600; font-size: 16px; }
.pkg-card .pkg-len { color: var(--muted); font-size: 13px; }
.pkg-card .pkg-price { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--accent); margin-top: 4px; }
.pkg-change { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.pkg-change:hover { text-decoration: underline; }
/* gift checkbox row */
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color .15s, background .15s; }
.check-row:hover { border-color: var(--accent-2); }
.check-row input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: 0 0 auto; cursor: pointer; }
.check-row .check-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
.check-row .check-sub { color: var(--muted); font-size: 13px; }
.billing { margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.billing > summary { list-style: none; cursor: pointer; padding: 13px 14px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--paper); }
.billing > summary::-webkit-details-marker { display: none; }
.billing > summary::after { content: "+"; float: right; color: var(--accent); font-size: 18px; line-height: 1; }
.billing[open] > summary::after { content: "−"; }
.billing[open] > summary { color: var(--ink); border-bottom: 1px solid var(--line); }
.billing-body { padding: 16px 14px 4px; }
@media (max-width: 920px) {
  .pricing { grid-template-columns: 1fr; gap: 28px; }
  .price-card.featured { transform: none; order: -1; }
}

/* ---------- gift band ---------- */
.gift {
  background: linear-gradient(150deg, #15131f 0%, #0C0D12 60%);
  color: #fff; border-radius: 26px; padding: 56px 48px; position: relative; overflow: hidden;
  border: 1px solid var(--line-dk);
}
.gift::before { content:""; position:absolute; right:-80px; top:-80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); }
.gift-inner { position: relative; z-index: 1; max-width: 560px; }
.gift h2 { color: #fff; }
.gift p { color: var(--muted-dk); margin: 14px 0 26px; font-size: 18px; }
.gift .ribbon { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
@media (max-width: 620px) { .gift { padding: 40px 26px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); }
.faq-q .chev { flex: 0 0 auto; transition: transform .25s ease; color: var(--accent); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--muted); font-size: 16px; }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; max-width: 760px; }
.founder .avatar { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(150deg, var(--accent), #2a1d7a); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 600; font-size: 30px; }
.founder p { color: var(--muted); }
.founder a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 540px) { .founder { grid-template-columns: 1fr; text-align: left; } }
.founder-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.founder-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); aspect-ratio: 3/4; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-body p { color: var(--muted); margin-bottom: 14px; font-size: 16px; }
.founder-body p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .founder-grid { grid-template-columns: 1fr; gap: 24px; }
  .founder-photo { max-width: 240px; }
}
.cred-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; max-width: 920px; }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.cred-list li svg { flex: 0 0 20px; color: var(--ok); margin-top: 3px; }
@media (max-width: 680px) { .cred-list { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--muted-dk); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line-dk); }
.footer .brand { color: #fff; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dk); margin-bottom: 12px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; color: #C9C9D2; font-size: 15px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer .demo-note { color: var(--accent-2); }

/* ---------- checkout ---------- */
.co-wrap { min-height: 100vh; display: flex; justify-content: center; }
.co-main { padding: 56px 48px; display: flex; flex-direction: column; width: 100%; max-width: 600px; }
.co-back { font-size: 14px; color: var(--muted); margin-bottom: 24px; display: inline-flex; gap: 6px; align-items: center; }
.co-back:hover { color: var(--ink); }
.co-main h1 { font-size: 30px; margin-bottom: 6px; }
.co-main .demo-pill { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; background: rgba(107,78,255,.1); color: var(--accent); border: 1px solid rgba(107,78,255,.25); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin: 14px 0 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,78,255,.14); }
.field input::placeholder, .field textarea::placeholder { color: #B6B5AE; }
.field.invalid input { border-color: #E0483B; }
.field .err { color: #E0483B; font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-row { display: grid; grid-template-columns: 1fr 110px 100px; gap: 14px; }
.co-pay { margin-top: 10px; }
.co-fineprint { font-size: 12.5px; color: var(--muted); margin-top: 16px; text-align: center; }
.co-fineprint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 880px) {
  .co-main { padding: 36px 26px; max-width: none; }
  .card-row { grid-template-columns: 1fr 1fr; }
}

/* spinner + success */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: center; padding: 20px 0; animation: rise .4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: rgba(31,176,115,.12); color: var(--ok); display: grid; place-items: center; margin: 0 auto 22px; }
.success h1 { font-size: 28px; margin-bottom: 10px; }
.success p { color: var(--muted); }
.voucher {
  margin: 26px auto; max-width: 380px; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden; border: 1px solid var(--line-dk);
}
.voucher::before { content:""; position:absolute; right:-50px; top:-50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); }
.voucher .vlabel { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dk); position: relative; }
.voucher .vcode { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: .06em; margin: 8px 0 4px; position: relative; }
.voucher .vmeta { font-size: 13px; color: var(--muted-dk); position: relative; }
.copy-btn { margin-top: 4px; font-size: 13px; }

/* ---------- legal / podminky ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.legal .demo-pill { display: inline-flex; gap: 7px; align-items: center; background: rgba(107,78,255,.1); color: var(--accent); border: 1px solid rgba(107,78,255,.25); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 34px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: #34342F; font-size: 15.5px; }
.legal ul, .legal ol { margin: 8px 0 8px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-bottom: 28px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .pulse, .spinner { animation: none; } }

/* ---------- mobile breathing room ---------- */
@media (max-width: 600px) {
  /* keep a generous outer gutter, trim doubled inner padding so text is not cramped */
  .container { padding: 0 24px; }
  .section { padding: 60px 0; }
  .section-tight { padding: 44px 0; }
  .sec-head { margin-bottom: 32px; }
  .price-card { padding: 24px 20px; }
  .inc { padding: 16px; }
  .steps-compact .step { padding: 16px 16px; }
  .gift { padding: 34px 24px; border-radius: 20px; }
  .price-info > summary, .price-info-body { padding-left: 18px; padding-right: 18px; }
  .co-main { padding: 36px 24px 44px; }
  .co-main .demo-pill { margin: 16px 0 26px; }
  .co-pay { margin-top: 24px; }
  .billing { margin-bottom: 22px; }
  .co-fineprint { margin-top: 18px; }
  .legal { padding: 44px 24px 64px; }
}
@media (max-width: 420px) {
  .hero-grid { padding: 48px 20px 56px; }
  .hero-meta { gap: 20px 24px; margin-top: 32px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
}
@media (max-width: 360px) {
  .container { padding: 0 22px; }
}

/* ---------- rezervace modal (checkout v dialogu) ---------- */
.checkout-modal {
  position: fixed; inset: 0; margin: auto;
  width: min(1100px, 96vw); height: 95vh;
  max-width: 96vw; max-height: 95vh;
  padding: 0; border: none; border-radius: 18px; overflow: hidden;
  background: var(--ink); color: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  transform: scale(.9); opacity: 0;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), opacity .22s ease;
}
.checkout-modal.is-open { transform: scale(1); opacity: 1; }
.checkout-modal::backdrop { background: rgba(8,9,14,.66); backdrop-filter: blur(3px); }
.checkout-modal-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.checkout-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); background: rgba(12,13,18,.72); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
  transition: background .15s ease;
}
.checkout-modal-close:hover { background: rgba(40,42,56,.92); }
@media (max-width: 640px) {
  /* use dvh: plain 100vh overflows the visible area when the mobile toolbar is
     shown, and margin:auto centering then pushes the dialog top (and the close
     button) above the viewport, clipping the cross. */
  .checkout-modal {
    width: 100vw; height: 100vh; height: 100dvh;
    max-width: 100vw; max-height: 100vh; max-height: 100dvh;
    border-radius: 0;
  }
  /* keep the close cross clear of the notch / status bar */
  .checkout-modal-close {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 10px);
  }
}
