/* dizajno: shared brand styles for the homepage, admin panel and 404 page */
:root {
  --bg: #f6f3ee;
  --bg-2: #ece6dc;
  --paper: #ffffff;
  --ink: #15132b;
  --ink-soft: #221f3d;
  --ink-2: #4f4b66;
  --ink-3: #8b879f;
  --line: rgba(21, 19, 43, .12);
  --line-strong: rgba(21, 19, 43, .22);
  --accent: #5b3df5;       /* electric violet: buttons, links, highlights */
  --accent-dark: #4127d8;
  --accent-soft: #e8e3ff;
  --hi: #c6f432;           /* lime: highlighter, second logo dot */
  --hi-dark: #9fcc12;
  --hi-soft: #effacb;
  --mint: #10a387;         /* success */
  --mint-soft: #d5f4ec;
  --danger: #d9330f;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(21, 19, 43, .06), 0 10px 30px -12px rgba(21, 19, 43, .22);
  --shadow-lg: 0 2px 4px rgba(21, 19, 43, .06), 0 40px 80px -30px rgba(21, 19, 43, .45);
  --font-head: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1; margin: 0; letter-spacing: -.035em; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--hi); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- logo (inline SVG wordmark, colour = currentColor) ---------- */
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; line-height: 0; }
.logo svg { height: 30px; width: auto; }
.mark { width: 36px; height: 36px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(91, 61, 245, .7); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #000; }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-light:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 7px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.dots { display: inline-flex; gap: 4px; padding: 0 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.dots i + i { background: var(--hi); }
.tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--hi-soft); color: #3d5000;
}

/* ---------- browser window with a live, scaled-down site inside ---------- */
.frame {
  position: relative; background: var(--paper); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.frame-bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  background: #f6f1ea; border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e4dccf; flex: none; }
.frame-url {
  margin: 0 auto; width: min(60%, 320px); height: 18px; border-radius: 6px; background: var(--paper);
  font-size: 10.5px; font-weight: 600; color: var(--ink-3); line-height: 18px; padding: 0 10px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame-bar::after { content: ""; width: 39px; flex: none; }
.frame-view { --w: 1280px; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.frame-view iframe {
  position: absolute; top: 0; left: 0; border: 0; background: #fff; max-width: none;
  width: var(--w); height: calc(100% / var(--s, .25));
  transform: scale(var(--s, .25)); transform-origin: 0 0; pointer-events: none;
}
.frame-view::after { content: ""; position: absolute; inset: 0; } /* clicks go to the card, not the site */

/* phone with the same site at mobile width */
.phone {
  position: relative; aspect-ratio: 390 / 820; padding: 7px; border-radius: 30px; background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 14px; left: 50%; width: 30%; height: 14px;
  transform: translateX(-50%); border-radius: 999px; background: var(--ink);
}
.phone .frame-view { --w: 390px; aspect-ratio: auto; height: 100%; border-radius: 24px; }

/* skeleton shown while there is no demo yet */
.ph { position: absolute; inset: 0; padding: 7% 8%; display: grid; align-content: start; gap: 9px; background: var(--paper); }
.ph b { display: block; height: 10px; border-radius: 999px; background: var(--bg-2); }
.ph b.big { height: 28px; width: 72%; background: var(--accent-soft); margin-top: 8%; }
.ph b.short { width: 48%; }
.ph b.btn-ph { width: 30%; height: 22px; background: var(--ink); margin-top: 6px; }

/* ---------- small helpers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
