:root {
  --blue: #2563eb;   /* ujednolicone z landing/style.css --accent (2026-07-19) */
  --orange: #f59e0b; /* ujednolicone z landing/style.css --accent-2 (2026-07-19) */
  --ink: #1c2230;
  --muted: #6b7280;
  --line: #e4e7ec;
  --bg: #f6f7f9;
  --ok: #16a34a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
}
header { background: var(--blue); color: #fff; }
.header-inner { max-width: 1040px; margin: 0 auto; padding: 20px 16px; text-align: left; }
.brand { font-size: 34px; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.brand span { color: var(--orange); }
a.brand { text-decoration: none; display: inline-block; }
a.brand:hover { opacity: .85; }
.tag { color: rgba(255,255,255,.9); margin: 6px auto 0; max-width: 560px; }

main {
  display: grid; grid-template-columns: 380px 1fr; gap: 24px;
  max-width: 1040px; margin: 20px auto; padding: 0 16px 48px;
}
@media (max-width: 820px) { main { grid-template-columns: 1fr; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.panel h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 22px 0 12px; }
.panel h2:first-of-type { margin-top: 4px; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; max-height: 150px; overflow-y: scroll; padding-right: 8px; scrollbar-gutter: stable; }
.presets::-webkit-scrollbar { width: 10px; -webkit-appearance: none; }
.presets::-webkit-scrollbar-track { background: #eef0f3; border-radius: 8px; }
.presets::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 8px; border: 2px solid #eef0f3; min-height: 40px; }
.presets::-webkit-scrollbar-thumb:hover { background: #1e50c8; }
.presets button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 7px;
}
.presets button:hover { border-color: var(--blue); }
.swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.1); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input[type=email] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px;
}
.segmented { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.segmented button { flex: 1; border: 0; background: #fff; padding: 9px; cursor: pointer; font-size: 14px; }
.segmented button.on { background: var(--blue); color: #fff; }

.colors { display: flex; flex-wrap: wrap; gap: 16px; }
.color-item { display: flex; flex-direction: column; gap: 6px; }
.color-item label { font-size: 12px; color: var(--muted); }
.color-item input[type=color] {
  width: 64px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.colors .swap {
  align-self: flex-end; height: 42px; width: 36px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 18px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.colors .swap:hover { border-color: var(--blue); color: var(--blue); }
.color-hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.risk { background: #f0f9f2; color: #15602f; border: 1px solid #cfe8d4; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px; }

.cta {
  display: block; width: 100%; text-align: center; background: var(--blue); color: #fff;
  border: 0; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer;
  text-decoration: none; margin-top: 4px;
}
.cta:hover { filter: brightness(1.06); }
.cta:disabled, .cta.busy { opacity: .75; cursor: progress; filter: none; }
.hint { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }

.stage { display: flex; flex-direction: column; align-items: center; }
.preview-wrap { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
#preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; text-align: center; }

.loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(255,255,255,.55); backdrop-filter: blur(2px); color: var(--ink); font-size: 14px; font-weight: 600; }
.loader .spinner { width: 40px; height: 40px; border: 4px solid rgba(37,99,234,.25); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal { position: fixed; inset: 0; background: rgba(20,25,35,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 18px; padding: 26px; max-width: 420px; width: 100%; text-align: center; }
.modal-box h3 { margin: 0 0 10px; }
.code { font-size: 23px; font-weight: 800; letter-spacing: 1px; color: var(--blue); background: #eef3ff; border-radius: 12px; padding: 12px 10px; margin-bottom: 6px; word-break: break-all; }
.copy-btn { display: inline-block; margin: 2px 0 14px; padding: 8px 16px; border: 1px solid var(--blue); background: #fff; color: var(--blue); border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: #eef3ff; }
.lost { color: var(--muted); font-size: 12.5px; margin: 12px 0 4px; }
.steps { text-align: left; color: var(--ink); padding-left: 20px; margin: 0 0 16px; font-size: 14px; }
.upsell { text-align: left; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.upsell label { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink); }
.upsell-note { display: block; color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.close { margin-top: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
