/* ============================================================
   HLUBINA — Design System v0.1
   Visual DNA: clean monochrome UI, colour from photography,
   tight geometric grotesk display, generous radii & whitespace.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Neutral ramp — warm-tinted, very low chroma */
  --white: #ffffff;
  --n-50:  oklch(0.986 0.004 75);
  --n-100: oklch(0.966 0.005 75);
  --n-150: oklch(0.945 0.006 75);
  --n-200: oklch(0.915 0.006 75);
  --n-300: oklch(0.870 0.006 75);
  --n-400: oklch(0.720 0.006 75);
  --n-500: oklch(0.585 0.006 75);
  --n-600: oklch(0.460 0.006 75);
  --n-700: oklch(0.345 0.006 75);
  --n-800: oklch(0.245 0.006 75);
  --n-900: oklch(0.175 0.005 75);
  --n-950: oklch(0.130 0.005 75);

  /* Photo-derived pastel tints — decorative only, never on UI text */
  --tint-blush:  oklch(0.93 0.045 18);
  --tint-coral:  oklch(0.90 0.075 35);
  --tint-butter: oklch(0.94 0.060 95);
  --tint-mint:   oklch(0.93 0.055 165);
  --tint-aqua:   oklch(0.91 0.060 205);
  --tint-sky:    oklch(0.90 0.060 235);
  --tint-lilac:  oklch(0.91 0.050 305);

  /* Semantic — LIGHT */
  --paper:        var(--white);   /* pure white page bg (was warm cream --n-50) */
  --surface:      var(--white);
  --surface-2:    var(--n-100);
  --surface-sunk: var(--n-150);
  --border:       oklch(0.905 0.005 75);
  --border-strong:oklch(0.840 0.006 75);
  --ink:          var(--n-900);
  --ink-2:        var(--n-600);
  --ink-3:        var(--n-500);
  --ink-faint:    var(--n-400);
  --solid:        var(--n-950);     /* primary button bg */
  --solid-hover:  var(--n-800);
  --on-solid:     var(--white);
  --focus:        oklch(0.62 0.13 235);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* Spacing (4px base) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --s-32: 128px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(20,18,15,0.05), 0 1px 1px rgba(20,18,15,0.04);
  --sh-md: 0 4px 14px rgba(20,18,15,0.07), 0 1px 3px rgba(20,18,15,0.05);
  --sh-lg: 0 14px 40px rgba(20,18,15,0.10), 0 4px 12px rgba(20,18,15,0.06);
  --sh-xl: 0 30px 70px rgba(20,18,15,0.14), 0 10px 24px rgba(20,18,15,0.07);

  /* Type */
  --font-display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1180px;
  --dur: 0.22s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper:        oklch(0.158 0.005 75);
  --surface:      oklch(0.198 0.006 75);
  --surface-2:    oklch(0.232 0.006 75);
  --surface-sunk: oklch(0.140 0.005 75);
  --border:       oklch(0.300 0.006 75);
  --border-strong:oklch(0.400 0.006 75);
  --ink:          oklch(0.970 0.004 75);
  --ink-2:        oklch(0.780 0.005 75);
  --ink-3:        oklch(0.640 0.005 75);
  --ink-faint:    oklch(0.500 0.006 75);
  --solid:        var(--white);   /* invert: light button on dark */
  --solid-hover:  var(--n-200);
  --on-solid:     var(--n-950);

  --sh-sm: 0 1px 2px rgba(0,0,0,0.40);
  --sh-md: 0 6px 18px rgba(0,0,0,0.45);
  --sh-lg: 0 18px 46px rgba(0,0,0,0.55);
  --sh-xl: 0 34px 80px rgba(0,0,0,0.62);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
img { display: block; max-width: 100%; }
h1,h2,h3,h4,h5 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- LAYOUT SHELL ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--s-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.brand .ver { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

.section { padding: var(--s-20) 0; scroll-margin-top: 96px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-10); flex-wrap: wrap; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--border-strong); display: inline-block; }
.section-title { font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.section-note { color: var(--ink-2); max-width: 46ch; font-size: 15.5px; display: none; }
/* desktop: nadpis + note na jednom řádku (note vpravo, text doprava); na mobilu se stackují vlevo */
@media (min-width: 860px){
  .section-head { flex-wrap: nowrap; }
  .section-head > div { flex: 1 1 auto; min-width: 0; }
  .section-note { flex: 0 0 auto; text-align: right; }
}

/* generic grids */
.grid { display: grid; gap: var(--s-5); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-8);
  box-shadow: var(--sh-sm);
}
.label-mono { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }

/* ============================================================
   COVER
   ============================================================ */
.cover { position: relative; overflow: hidden; padding: var(--s-24) 0 var(--s-20); }
.cover-bg {
  position: absolute; inset: -10% -5% auto -5%; height: 120%; z-index: 0;
  background:
    radial-gradient(60% 60% at 12% 8%, color-mix(in oklab, var(--tint-blush) 70%, transparent), transparent 70%),
    radial-gradient(55% 55% at 92% 4%, color-mix(in oklab, var(--tint-mint) 70%, transparent), transparent 70%),
    radial-gradient(60% 50% at 80% 96%, color-mix(in oklab, var(--tint-sky) 60%, transparent), transparent 72%);
  opacity: 0.9; pointer-events: none;
}
[data-theme="dark"] .cover-bg { opacity: 0.16; }
.cover-inner { position: relative; z-index: 1; }
.cover h1 {
  font-size: clamp(56px, 12vw, 150px); font-weight: 700; letter-spacing: -0.05em;
  line-height: 0.9; margin: var(--s-6) 0 var(--s-5);
}
.cover .role { font-size: clamp(18px, 2.4vw, 26px); color: var(--ink); font-weight: 500; max-width: 30ch; }
.cover .role b { font-weight: 700; }
.cover-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-8); }

/* ============================================================
   COLOUR
   ============================================================ */
.ramp { display: grid; grid-template-columns: repeat(12, 1fr); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.ramp .cell { aspect-ratio: 3/4; display: flex; align-items: flex-end; padding: 8px; }
.ramp .cell span { font-family: var(--font-mono); font-size: 10px; }
@media (max-width: 720px){ .ramp { grid-template-columns: repeat(6, 1fr); } }

.swatches { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s-4); }
@media (max-width: 720px){ .swatches { grid-template-columns: repeat(2,1fr);} }
.swatch { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.swatch .chip { height: 84px; }
.swatch .meta { padding: 10px 12px; }
.swatch .meta .nm { font-weight: 600; font-size: 13.5px; }
.swatch .meta .vl { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* photo placeholders — colour comes from imagery */
.photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background-size: cover; background-position: center;
  isolation: isolate;
}
.photo::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 10px, rgba(0,0,0,0.045) 10px 20px);
  mix-blend-mode: soft-light; z-index: 1;
}
.photo .tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; color: #fff;
  background: rgba(20,18,15,0.55); backdrop-filter: blur(4px);
  padding: 4px 9px; border-radius: var(--r-pill); letter-spacing: 0.02em;
}
.ph-poolside { background: linear-gradient(135deg, var(--tint-aqua), var(--tint-mint) 55%, var(--tint-butter)); }
.ph-sunset   { background: linear-gradient(135deg, var(--tint-butter), var(--tint-coral) 60%, var(--tint-blush)); }
.ph-blossom  { background: linear-gradient(135deg, var(--tint-blush), var(--tint-lilac) 70%, var(--tint-sky)); }
.ph-citrus   { background: linear-gradient(135deg, var(--tint-butter), var(--tint-mint)); }
.ph-sky      { background: linear-gradient(160deg, var(--tint-sky), var(--tint-aqua)); }
.ph-coral    { background: linear-gradient(135deg, var(--tint-coral), var(--tint-blush)); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.type-spec { display: flex; align-items: baseline; gap: var(--s-6); padding: var(--s-5) 0; border-top: 1px dashed var(--border); }
.type-spec:first-child { border-top: 0; }
.type-spec .meta { flex: 0 0 150px; }
.type-spec .meta .nm { font-weight: 600; font-size: 13px; }
.type-spec .meta .vl { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.type-spec .demo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-display { font-family: var(--font-display); font-weight: 700; font-size: 60px; letter-spacing: -0.045em; line-height: 1; }
.t-h1 { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; }
.t-h2 { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.025em; }
.t-h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.t-lead { font-family: var(--font-text); font-weight: 400; font-size: 19px; line-height: 1.5; }
.t-body { font-family: var(--font-text); font-weight: 400; font-size: 16px; }
.t-small { font-family: var(--font-text); font-weight: 400; font-size: 14px; color: var(--ink-2); }
.t-mono { font-family: var(--font-mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }

.font-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-sm); }
.font-card .big { font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.font-card .aa { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s-4); }
.font-card .glyphs { color: var(--ink-2); font-size: 14px; margin-top: var(--s-3); word-spacing: 2px; }
.weights { display: flex; gap: 14px; flex-wrap: wrap; margin-top: var(--s-4); color: var(--ink-2); font-size: 14px; }
.weights b { color: var(--ink); }

/* ============================================================
   SPACING / RADIUS / ELEVATION
   ============================================================ */
.scale-row { display: flex; align-items: center; gap: var(--s-4); padding: 7px 0; }
.scale-row .bar { height: 16px; background: var(--ink); border-radius: 3px; }
.scale-row .lab { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); flex: 0 0 86px; }

.radius-box { aspect-ratio: 1; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: flex-end; padding: 10px; }
.radius-box span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.elev-box { aspect-ratio: 1.6; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; align-items: flex-end; padding: 14px; }
.elev-box span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* icons */
.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
@media (max-width: 720px){ .icon-grid { grid-template-columns: repeat(3,1fr);} }
.icon-cell {
  aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; color: var(--ink);
}
.icon-cell svg { width: 26px; height: 26px; }
.icon-cell span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--bh); padding: 0 22px; border-radius: var(--r-pill);
  font-family: var(--font-text); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 17px; height: 17px; }
.btn .arrowdot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-pill); margin-right: -10px;
  background: color-mix(in oklab, var(--on-solid) 18%, transparent);
}
.btn-primary { background: var(--solid); color: var(--on-solid); }
.btn-primary:hover { background: var(--solid-hover); box-shadow: var(--sh-md); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { --bh: 38px; font-size: 13.5px; padding: 0 16px; }
.btn-lg { --bh: 58px; font-size: 16.5px; padding: 0 28px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-iconel { width: var(--bh); padding: 0; }

/* ============================================================
   NAVBAR (demo)
   ============================================================ */
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4);
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--r-pill); padding: 10px 12px 10px 22px; box-shadow: none;
}
.nav .nav-actions { justify-self: end; }
.nav .logo { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.04em; }
.nav ul { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 9px 15px;
  border-radius: var(--r-pill); font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* reserve the bold (active) width so switching pages never shifts the other links */
.nav ul a::after {
  content: attr(data-text); height: 0; overflow: hidden; visibility: hidden; pointer-events: none; font-weight: 600;
}
.nav ul a:hover { color: var(--ink); background: var(--surface-2); }
.nav ul a.active { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.nav ul a svg { width: 13px; height: 13px; opacity: 0.6; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; font-size: 14px; color: var(--ink-2); border-radius: var(--r-pill); }
.lang svg { width: 15px; height: 15px; }
@media (max-width: 820px){ .nav { display: flex; justify-content: space-between; } .nav ul { display: none; } }

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 500;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border);
}
.chip-ghost { background: transparent; }
.chip-solid { background: var(--solid); color: var(--on-solid); border-color: transparent; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.chip .dot.ok { background: oklch(0.7 0.16 150); }

.avatar-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 8px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--sh-sm); font-size: 13.5px; font-weight: 500;
}
.avatar-pill .avs { display: flex; }
.avatar-pill .avs i {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface);
  margin-left: -9px; background-size: cover;
}
.avatar-pill .avs i:first-child { margin-left: 0; }
.avatar-pill .sep { color: var(--ink-faint); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 14px; box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card .photo { aspect-ratio: 4/3; }
.card .body { padding: 16px 8px 8px; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h4 { font-size: 19px; }
.card .desc { color: var(--ink-2); font-size: 14px; margin-top: 8px; line-height: 1.5; }
.card .circ {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card:hover .circ { background: var(--solid); color: var(--on-solid); border-color: transparent; }
.card .circ svg { width: 15px; height: 15px; }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: var(--s-5); }
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-text); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 13px 15px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 12%, transparent);
}
.textarea { resize: vertical; min-height: 96px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }

.toggle { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track { width: 48px; height: 28px; border-radius: var(--r-pill); background: var(--border-strong); transition: background var(--dur) var(--ease); position: relative; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease); }
.toggle input:checked + .track { background: var(--solid); }
.toggle input:checked + .track::after { transform: translateX(20px); }
.toggle .lbl { font-size: 14px; }

.check { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; }
.check input { position: absolute; opacity: 0; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.check .box svg { width: 13px; height: 13px; opacity: 0; transition: opacity var(--dur) var(--ease); }
.check input:checked + .box { background: var(--solid); border-color: var(--solid); }
.check input:checked + .box svg { opacity: 1; }
.check .box svg path { stroke: var(--on-solid); }
.radio .box { border-radius: 50%; }
.radio input:checked + .box { background: var(--solid); border-color: var(--solid); }
.radio .box i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-solid); opacity: 0; transition: opacity var(--dur) var(--ease); }
.radio input:checked + .box i { opacity: 1; }

/* ============================================================
   COMPOSITION (sample hero)
   ============================================================ */
.demo-hero {
  position: relative; overflow: hidden; border-radius: var(--r-2xl);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-lg);
  padding: var(--s-6) var(--s-6) 0;
}
.demo-hero .bg {
  position: absolute; inset: auto -10% -40% -10%; height: 70%; z-index: 0;
  background: radial-gradient(50% 80% at 20% 100%, color-mix(in oklab, var(--tint-blush) 60%, transparent), transparent 70%),
              radial-gradient(50% 80% at 85% 100%, color-mix(in oklab, var(--tint-mint) 55%, transparent), transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .demo-hero .bg { opacity: 0.25; }
.demo-hero .inner { position: relative; z-index: 1; text-align: center; padding-top: var(--s-6); }
.demo-hero h2 { font-size: clamp(34px, 6vw, 68px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.94; margin: var(--s-5) auto var(--s-5); max-width: 16ch; }
.demo-hero .sub { color: var(--ink-2); max-width: 42ch; margin: 0 auto var(--s-6); font-size: 16.5px; }
.demo-hero .strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: var(--s-10); }
.demo-hero .strip .photo { aspect-ratio: 3/4; }
.demo-hero .strip .photo:nth-child(1){ margin-top: 18px; }
.demo-hero .strip .photo:nth-child(3){ margin-top: 30px; }
.demo-hero .strip .photo:nth-child(5){ margin-top: 30px; }
@media (max-width: 760px){ .demo-hero .strip { grid-template-columns: repeat(3,1fr); } }

/* ---------- footer ---------- */
.foot { padding: var(--s-12) 0 var(--s-16); color: var(--ink-3); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.foot .label-mono { color: var(--ink-faint); }

/* theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 0; padding: 4px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid #fff;
}
[data-theme="dark"] .theme-toggle { border-color: rgba(255, 255, 255, 0.16); }
.theme-toggle button {
  border: 0; background: transparent; cursor: pointer; color: var(--ink-3);
  width: 34px; height: 30px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.theme-toggle button svg { width: 16px; height: 16px; }
.theme-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }

.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.row-wrap { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.divlabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--s-3); }

/* ============================================================
   PRODUCTION / SITE
   Thin layer on top of the design system for the live page:
   sticky pill nav + mobile menu, hero with photo strip,
   service cards, stats, testimonials, contact. Tokens & component
   classes above stay canonical — this only composes them.
   ============================================================ */

/* ---------- Page-top gradient (behind the transparent header) ---------- */
body { position: relative; }
body::before {
  display: none; /* TODO: dočasně skryté gradientové pozadí — vrátit zpět */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 760px;
  z-index: -1; pointer-events: none; opacity: 0.9;
  background:
    radial-gradient(60% 60% at 12% 8%, color-mix(in oklab, var(--tint-blush) 70%, transparent), transparent 70%),
    radial-gradient(55% 55% at 92% 4%, color-mix(in oklab, var(--tint-mint) 70%, transparent), transparent 70%),
    radial-gradient(60% 50% at 80% 96%, color-mix(in oklab, var(--tint-sky) 60%, transparent), transparent 72%);
  /* zvětšené plátno + posun pozice = pomalé přelévání blobů */
  background-size: 160% 160%, 150% 150%, 170% 170%;
  background-position: 0% 0%, 100% 0%, 80% 100%;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  0%   { background-position:  0%  0%, 100%  0%,  80% 100%; }
  50%  { background-position: 18% 14%,  82% 12%,  60%  84%; }
  100% { background-position:  8%  4%,  92%  2%, 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
[data-theme="dark"] body::before { opacity: 0.16; }
/* Booster subpage: bring the hero gradient back */
body.booster::before { display: block; }

/* Smooth in-page scrolling (e.g. "See pricing" → #pricing) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Sticky header (pill nav) — transparent so the gradient shows ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding: var(--s-4) 0;
  background: transparent;
  transition: transform 0.35s var(--ease);
  will-change: transform;
}
/* scroll dolů → zasunout nad horní hranu; scroll nahoru → vyjet zpět */
.site-header.nav-hidden { transform: translateY(-100%); }
/* jakmile je navigace odscrollovaná (vyjíždí/zasouvá se), vrátit border */
.site-header.scrolled .nav { border-color: var(--border); }
.site-header .nav { position: relative; }
.nav .logo a { display: inline-flex; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* hamburger — hidden on desktop, shown with the pill links break */
.nav-burger {
  display: none; width: 40px; height: 40px; flex: 0 0 auto;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  background: var(--surface); cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-burger svg { width: 18px; height: 18px; }

/* mobile dropdown panel */
.nav-mobile { display: none; }
@media (max-width: 820px) {
  .nav-burger { display: inline-flex; }
  .nav-mobile {
    display: block; margin-top: var(--s-3);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); box-shadow: var(--sh-lg);
    padding: var(--s-3); overflow: hidden;
    max-height: 0; opacity: 0; margin-top: 0; padding-block: 0; border-width: 0;
    transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease), margin var(--dur) var(--ease);
  }
  .nav-mobile.open { max-height: 420px; opacity: 1; margin-top: var(--s-3); padding-block: var(--s-3); border-width: 1px; }
  .nav-mobile a {
    display: block; padding: 13px 16px; border-radius: var(--r-md);
    font-weight: 500; color: var(--ink-2);
  }
  .nav-mobile a:hover { background: var(--surface-2); color: var(--ink); }
  .nav-mobile .btn { width: 100%; margin-top: var(--s-2); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-12) 0 var(--s-16); }
.hero .cover-bg { display: none; } /* gradient now comes from body::before, from the very top */
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6vw, 60px); letter-spacing: -0.045em; line-height: 1;
  margin: var(--s-6) auto var(--s-10); max-width: none;
}
.hero h1 .muted { color: var(--ink-faint); }
.hero .lead { color: var(--ink-2); max-width: 66ch; margin: 0 auto var(--s-8); font-size: 16px; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* dostupnost — badge bez rámečku se zeleným tickem */
.avail-badge {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  margin-top: var(--s-8); padding: 0;
  font-family: var(--font-text); font-size: 14px; font-weight: 500;
  color: var(--ink-2); background: transparent; border: 0;
}
.avail-badge .avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.62 0.17 150); flex: 0 0 auto;
  animation: avail-blink 1.4s ease-in-out infinite;
}
@keyframes avail-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .avail-badge .avail-dot { animation: none; } }

/* social proof inside hero (above the photo strip, no divider lines) */
.hero-clients { margin-top: var(--s-20); margin-bottom: var(--s-16); }
.hero-clients .t-mono { margin-bottom: var(--s-6); }

/* photo strip — color comes from imagery, first tile is the real portrait */
.strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  margin-top: var(--s-16);
}
.strip .photo { aspect-ratio: 3/4; box-shadow: var(--sh-md); }
.strip .photo img { width: 100%; height: 100%; object-fit: cover; }
.strip .photo:nth-child(2){ margin-top: 22px; }
.strip .photo:nth-child(4){ margin-top: 32px; }
.strip .photo:nth-child(6){ margin-top: 22px; }
@media (max-width: 760px){ .strip { grid-template-columns: repeat(3, 1fr); } .strip .photo:nth-child(n){ margin-top: 0; } }
@media (max-width: 420px){ .strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Client proof ---------- */
/* Logos are flattened to one monochrome shade with a filter — brightness(0) forces
   any source color (incl. white-fill SVGs) to black, then invert() lifts it to the
   warm-grey --ink-faint level. Keeps the wall monochrome per the design system. */
.clients { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px 56px; padding: 0 80px; }
@media (max-width: 720px){ .clients { gap: 36px 40px; padding: 0; } }
.client-logo {
  display: block; height: 28px; width: auto;
  filter: brightness(0) invert(20%); opacity: 0.9;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.client-logo:hover { filter: brightness(0); opacity: 1; }
[data-theme="dark"] .client-logo { filter: brightness(0) invert(60%); }
[data-theme="dark"] .client-logo:hover { filter: brightness(0) invert(96%); }
.client-word {
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em;
  color: var(--ink); opacity: 0.85; transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.client-word:hover { color: var(--ink); opacity: 1; }
.client-word b { font-weight: 700; }

/* ---------- Service cards (no photo) ---------- */
.svc { padding: var(--s-8); display: flex; flex-direction: column; gap: var(--s-3); }
.svc .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.12em; }
.svc .head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.svc h3 { font-size: 21px; }
.svc p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.svc .circ { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.svc:hover .circ { background: var(--solid); color: var(--on-solid); border-color: transparent; }
.svc .circ svg { width: 15px; height: 15px; }

/* ---------- Product Booster pricing ---------- */
.price { display: flex; align-items: baseline; gap: 8px; margin: var(--s-2) 0 var(--s-1); }
.price strong { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; color: var(--ink); }
.price span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.checklist { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.checklist li svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ink-2); }

/* ---------- Featured Product Booster (homepage) ---------- */
.booster-feature { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px); text-align: center; }
.booster-feature-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.booster-tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-4); }
.booster-feature h2 { margin-bottom: var(--s-4); }
.booster-feature .lead-copy { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; max-width: 58ch; margin: 0 auto var(--s-8); }
.booster-models { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-bottom: var(--s-8); }
.bm { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: var(--s-5) var(--s-8); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); min-width: 210px; }
.bm-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.bm-price { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; color: var(--ink); }
.bm-meta { font-size: 12.5px; color: var(--ink-3); }
.booster-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Reassurance cards (dashed) ---------- */
.assure { border: 1.5px dashed var(--border-strong); border-radius: var(--r-xl); padding: var(--s-8); }
.assure-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-3); }
.assure-head h3 { font-size: 22px; letter-spacing: -0.02em; }
.assure-ic { flex: 0 0 auto; display: inline-flex; color: var(--ink); }
.assure-ic svg { width: 26px; height: 26px; }
.assure p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
.pricing-note { text-align: center; max-width: 64ch; margin: var(--s-8) auto 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.pricing-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- How it works — "Request" horizontal marquee (left → right) ---------- */
.req-marquee {
  position: relative; overflow: hidden; margin-top: var(--s-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.req-track { display: inline-flex; flex-wrap: nowrap; gap: 8px; width: max-content; animation: req-scroll 32s linear infinite; }
.req-track .chip { white-space: nowrap; }
.req-marquee:hover .req-track { animation-play-state: paused; }
@keyframes req-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .req-track { animation: none; } }

/* Centered FAQ (all pages) */
#faq .section-head { text-align: center; }
#faq .faq { max-width: 760px; margin-inline: auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s-16); align-items: center; }
.about-grid .photo { aspect-ratio: 4/5; box-shadow: var(--sh-lg); }
.about-grid .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .t-h2 { margin-bottom: var(--s-5); }
.about-copy p { color: var(--ink-2); margin-bottom: var(--s-4); }
.about-copy p b { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin: var(--s-8) 0; padding: var(--s-6) 0; border-block: 1px solid var(--border); }
.stats .stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.stats .stat span { font-size: 13.5px; color: var(--ink-3); }
.about-tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- About hero (two-column intro) ---------- */
.about-hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 60px); letter-spacing: -0.045em; line-height: 1; margin: 0 0 var(--s-6); max-width: 20ch; }
.about-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: start; }
.about-hero-copy p { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0 0 var(--s-6); max-width: 52ch; }
.about-hero-copy p b { font-weight: 700; }
.about-hero-copy .note { color: var(--ink-3); font-size: 15px; }
.about-hero-copy .note b { color: var(--ink-2); }
.about-hero-copy .links { font-size: 14px; color: var(--ink-3); }
.about-hero-copy a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.about-hero-photo { margin: 0; }
.about-hero-photo .photo { aspect-ratio: 1.13; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); }
.about-hero-photo .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.about-hero-photo figcaption { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-3); font-size: 13px; color: var(--ink-3); }
.about-hero-title .muted { color: var(--ink-faint); }
.about-hero-photo .photo::after { display: none; } /* no diagonal-stripe texture over the real portrait */
@media (max-width: 820px){ .about-hero-grid { grid-template-columns: 1fr; gap: var(--s-8); } }
@media (max-width: 820px){ .about-grid { grid-template-columns: 1fr; gap: var(--s-8); } .about-grid .photo { max-width: 360px; } }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: var(--s-6); height: 100%; }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.quote-card .by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card .by .ph-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.quote-card .by .avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.quote-card .by > span:last-child { line-height: 1.3; }
.quote-card .by .nm { font-weight: 600; font-size: 14.5px; }
.quote-card .by .rl { font-size: 13px; color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.method {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-6); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.method:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.method .m-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.method .m-value { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; margin-top: 4px; }
.method .circ { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.method:hover .circ { background: var(--solid); color: var(--on-solid); border-color: transparent; }
.method .circ svg { width: 16px; height: 16px; }
@media (max-width: 560px){ .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; text-align: center; padding: var(--s-16) var(--s-8); }
.newsletter .cover-bg { inset: -40% -10% auto -10%; height: 140%; opacity: 0.7; }
.newsletter-inner { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; }
.newsletter .t-h2 { margin: var(--s-3) 0 var(--s-4); }
.newsletter .t-lead { color: var(--ink-2); margin-bottom: var(--s-8); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form .input { flex: 1; }
.newsletter-form .btn { flex: 0 0 auto; }
@media (max-width: 480px){ .newsletter-form { flex-direction: column; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-6) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -0.02em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ink); }
.faq-icon { position: relative; flex: 0 0 auto; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink-2);
  transform: translate(-50%, -50%); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq-icon::before { width: 14px; height: 1.8px; }
.faq-icon::after { width: 1.8px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-body { padding: 0 0 var(--s-6); color: var(--ink-2); max-width: 64ch; }
.faq-body p { line-height: 1.6; }

/* ---------- Footer ---------- */
.foot-inner .foot-links { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.foot-inner .foot-links a:hover { color: var(--ink); }

/* avatar tint helper for placeholder testimonial avatars */
.ph-avatar.ph-poolside, .ph-avatar.ph-sunset, .ph-avatar.ph-blossom { background-size: cover; }

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