/* Měřička chodidla: vzhled podle nové šablony e-shopu naBOSo (tpltest, UX
   Kvasnička 2026) a brand booku Letsmind. Jediný stylesheet měřičky, bez
   přepínatelných skinů. Zdroj tokenů: naboso-sablona/sablona/css/_settings.scss
   (barvy, stíny), components/_button.scss, _checkout.scss (kroky),
   _hp-ux10.scss (dlaždice výhod), _callout.scss, _dialog.scss.
   Písmo Manrope (brand book), zaoblení tlačítek 4 px jako na e-shopu,
   karty 14 px jako dlaždice homepage. Mobile-first. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A,
    U+201C-201E, U+2020-2022, U+2026, U+2039-203A, U+20AC, U+2212;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+0259, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand naBOSo (brand book str. 14-16) */
  --grass: #1b8847;        /* trávníková: tlačítka, plochy (text bílý) */
  --grass-dark: #186436;   /* hover tlačítek */
  --grass-text: #187a40;   /* zelený TEXT na světlém podkladu (UX 30) */
  --jungle: #27a95b;       /* džunglová: aktivní/vybrané, kresba na plátně */
  --amber: #f4bb1f;        /* jantarová: konverzní CTA (text černý) */
  --amber-dark: #e0a50c;
  --cherry: #ce0037;       /* třešňová: sleva, chyby */
  --snow: #fbf7f5;         /* sněžná: podklad karet a pásů */
  --dust: #d8d2cd;         /* prachová: linky */
  --g100: #f5f5f5; --g200: #e5e5e5; --g300: #d4d4d4; --g400: #a3a3a3;
  --g500: #737373; --g600: #525252; --g700: #404040; --g900: #171717;
  --green-tint: #e9f4ed;   /* vybraná dlaždice, hlášky OK */
  --radius: 4px;           /* tlačítka a pole jako na e-shopu */
  --radius-card: 14px;     /* karty a dlaždice jako na homepage */
  --shadow-xs: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 6px 12px rgba(0, 0, 0, 0.11);
  --shadow-lg: 0 13px 37px rgba(0, 0, 0, 0.21);
  --stage: #1b1e17;
  /* Aliasy pro skripty a partialy měřičky (canvas.js, foot_photo_guide.html) */
  --paper: #fff; --paper-2: var(--snow);
  --ink: #000; --ink-2: var(--g600);
  --green: var(--grass); --green-br: var(--jungle);
  --gold: var(--amber); --line: var(--dust); --alert: var(--cherry);
  --foot-diagram-accent: var(--jungle);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: #000;
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
a { color: #000; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }

/* ---------- CRM pruh (jen interní měřička) ---------- */
.crmbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 20px; background: var(--grass); color: #fff; font-size: 13px; font-weight: 600;
}
.crmbar a { color: #fff; text-decoration: underline; }
.crmbar .who { opacity: 0.9; font-weight: 500; }

/* ---------- Hlavička jako na e-shopu: bílá, logo, tenká linka ---------- */
.site-head { background: #fff; border-bottom: 1px solid var(--g200); }
.site-head__in {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-head__logo { display: block; line-height: 0; }
.site-head__logo img { height: 30px; width: auto; display: block; }
.site-head__brand { font-size: 20px; font-weight: 800; }
.site-head__link { font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-head__link:hover { text-decoration: underline; }
body.embed .site-head { display: none; }

/* ---------- Úvod: nadpis + podtitul na sněžném pásu, pravítko dole ---------- */
.hero { background: var(--snow); }
.hero__in { max-width: 1200px; margin: 0 auto; padding: 22px 20px 0; }
.hero h1 { font-size: 24px; }
.hero .sub { margin: 6px 0 14px; color: var(--g600); font-size: 14px; max-width: 720px; }
.ruler { height: 18px; width: 100%; display: block; }

/* ---------- Obsah ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 20px 20px 80px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }

/* Kroky jako v košíku nové šablony: karta s rámečkem, číslo v kolečku,
   hotový krok s fajfkou, aktuální zvýrazněný. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 8px; border: 1px solid var(--g200); border-radius: var(--radius);
  color: var(--g500); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center;
  cursor: pointer; user-select: none;
}
.step-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--g400); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.step.on { border-color: var(--grass); color: #000; }
.step.on .step-num { background: var(--grass); }
.step.done { color: #000; }
.step.done .step-num {
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  color: transparent;
}
body[data-ph="1"] .step { cursor: default; }

/* ---------- Karty ---------- */
.card { background: var(--snow); border-radius: var(--radius-card); padding: 16px; margin: 0 0 12px; }
.card__title { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.card__title .req { color: var(--cherry); font-weight: 600; font-size: 13px; }
.panel { background: #fff; border: 1px solid var(--dust); border-radius: var(--radius-card); padding: 18px; }
.panel + .panel { margin-top: 12px; }
.panel h2 { font-size: 16px; margin: 0 0 10px; }
.panel.p-measured { background: var(--snow); border-color: transparent; }

/* ---------- Tlačítka (components/_button.scss) ---------- */
button, .button, label.file span {
  font: inherit; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.3;
  cursor: pointer; border: 0; border-radius: var(--radius);
  background: var(--grass); color: #fff; padding: 13px 22px; min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; text-align: center; transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
button:hover, .button:hover { background: var(--grass-dark); color: #fff; }
button:disabled { background: var(--g300); color: #fff; cursor: not-allowed; }
/* Konverzní CTA = jantarová s černým textem (button--order) */
button.primary, .button--order, label.file span { background: var(--amber); color: #000; }
button.primary:hover, .button--order:hover, label.file span:hover { background: var(--amber-dark); color: #000; }
/* Vedlejší akce = bílé s tenkým rámečkem (button--hollow) */
button.hollow, .button--hollow {
  background: #fff; color: #000; box-shadow: inset 0 0 0 1px var(--g300);
}
button.hollow:hover, .button--hollow:hover { background: #fff; color: #000; box-shadow: inset 0 0 0 1px var(--g900); }
button.small, .button--small { padding: 8px 14px; min-height: 36px; font-size: 13px; letter-spacing: 0; }
button.link { background: none; color: var(--cherry); padding: 2px 4px; min-height: 0; font-size: 13px; letter-spacing: 0; }
button.link:hover { background: none; color: var(--cherry); text-decoration: underline; }
button:focus-visible, .button:focus-visible, .sr:focus-visible + label.file span {
  outline: 2px solid var(--jungle); outline-offset: 2px;
}
button:active, label.file span:active { transform: translateY(1px); }
label.file { display: inline-block; position: relative; }
label.file span { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.row > button, .row > label.file, .row > label.file span { width: 100%; }
.row > label.file { flex: 1 1 100%; }
button svg { flex: none; }

/* ---------- Formulářová pole (elements/_form.scss: výška 50 px) ---------- */
select, input[type="text"], input[type="number"], textarea {
  font: inherit; font-size: 16px; font-weight: 500; color: #000; width: 100%;
  border: 1px solid var(--g300); border-radius: var(--radius); background: #fff;
  padding: 10px 14px; min-height: 50px;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
select:focus, input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
  outline: 2px solid var(--jungle); outline-offset: 0; border-color: var(--jungle);
}
textarea { min-height: 120px; font-family: Consolas, "Liberation Mono", Courier, monospace; font-size: 12px; }
.field { margin: 0 0 10px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
input[type="range"] { width: 100%; accent-color: var(--grass); margin: 8px 0 4px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--grass); flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; cursor: pointer; }

/* ---------- Hlášky (components/_callout.scss) ---------- */
.hint { font-size: 14px; color: var(--g600); margin: 0 0 10px; }
.hint strong { color: #000; }
.ok, .err, .warn, .bad {
  display: block; border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin: 8px 0 0;
  border: 1px solid; color: #000;
}
.ok { background: var(--green-tint); border-color: var(--grass); }
.warn { background: #fffbeb; border-color: #fde68a; }
.err, .bad { background: #fef2f2; border-color: var(--cherry); }
#hint .err { margin: 0; }

/* ---------- Koho fotíte: dlaždice jako „Nejoblíbenější kategorie" ---------- */
#subjectBtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
#subjectBtns label {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px; border-radius: 12px; background: #fff;
  border: 1px solid var(--dust); font-size: 15px; font-weight: 800; cursor: pointer; text-align: center;
}
#subjectBtns label:hover { border-color: var(--g900); }
#subjectBtns label:has(input:checked) { background: var(--green-tint); border: 2px solid var(--grass); padding: 11px; }
#subjectBtns label:has(input:checked)::before {
  content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
#subjectBtns input { position: absolute; opacity: 0; pointer-events: none; }
#subjectBtns svg { width: 22px; height: 22px; color: var(--grass-text); flex: none; }
body.no-subject #subjectRow { box-shadow: inset 0 0 0 2px var(--amber); }
body.no-subject label.file span { opacity: 0.45; }
#settingsRow .set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#settingsRow .field { margin: 0; }

/* ---------- Plátno s fotkou ---------- */
.stage { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--stage); }
.stage:has(#cv[hidden]) { background: var(--snow); border: 2px dashed var(--dust); }
.stage.over { outline: 3px dashed var(--jungle); outline-offset: -8px; }
/* pan-y: přes fotku musí jít stránku posouvat prstem; při tažení bodu
   canvas.js přepne touch-action na none (viz canvas.js). */
.stage canvas { display: block; width: 100%; height: auto; touch-action: pan-y; }
.empty { padding: 48px 24px; text-align: center; color: var(--g600); font-size: 13px; }
.empty strong { display: block; color: #000; font-size: 16px; font-weight: 800; margin: 10px 0 6px; }
.empty svg { width: 40px; height: 40px; color: var(--grass-text); }

/* ---------- Návod k fázi (rohy + body) ---------- */
#phaseGuide .pg { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  background: var(--snow); border-radius: var(--radius-card); padding: 14px; margin: 0 0 12px; }
#phaseGuide .pg[hidden] { display: none; }
#phaseGuide .pg svg { width: 120px; flex: none; }
#phaseGuide .pg .tx { flex: 1; min-width: 200px; font-size: 13px; line-height: 1.5; color: var(--g700); }
#phaseGuide .pg .tx strong { display: block; color: #000; font-size: 15px; font-weight: 800; margin: 0 0 4px; }
/* Rozpohybované skici: bod se „chytne" a přetáhne na správné místo. */
@keyframes pgDragCorner { 0%, 8% { transform: translate(0, 0); } 48%, 72% { transform: translate(18px, 14px); } 84%, 100% { transform: translate(0, 0); } }
@keyframes pgDragToe { 0%, 4% { transform: translate(4px, 24px); } 22%, 96% { transform: translate(0, 0); } 100% { transform: translate(4px, 24px); } }
@keyframes pgDragW1 { 0%, 37% { transform: translate(-13px, 0); } 55%, 96% { transform: translate(0, 0); } 100% { transform: translate(-13px, 0); } }
@keyframes pgDragW2 { 0%, 70% { transform: translate(14px, 0); } 88%, 96% { transform: translate(0, 0); } 100% { transform: translate(14px, 0); } }
@keyframes pgGrabToe { 0%, 2% { opacity: 0; } 6%, 24% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes pgGrabW1 { 0%, 35% { opacity: 0; } 39%, 57% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes pgGrabW2 { 0%, 68% { opacity: 0; } 72%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes pgTargetToe { 0%, 18% { opacity: 0.85; } 26%, 100% { opacity: 0; } }
@keyframes pgGrab { 0%, 6% { opacity: 0; } 10%, 74% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes pgTargetPulse { 0%, 45% { opacity: 0.85; } 60%, 100% { opacity: 0; } }
#phaseGuide .anim { animation-duration: 4s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
#phaseGuide .a-corner { animation-name: pgDragCorner; }
#phaseGuide .a-toe { animation-name: pgDragToe; }
#phaseGuide .a-w1 { animation-name: pgDragW1; }
#phaseGuide .a-w2 { animation-name: pgDragW2; }
#phaseGuide .a-grab { animation-name: pgGrab; }
#phaseGuide .pg[data-phase="3"] .anim { animation-duration: 9s; }
#phaseGuide .pg[data-phase="3"] .pg-corners .anim { animation-duration: 4s; }
#phaseGuide .g-toe { animation-name: pgGrabToe; }
#phaseGuide .g-w1 { animation-name: pgGrabW1; }
#phaseGuide .g-w2 { animation-name: pgGrabW2; }
#phaseGuide .t-toe { animation-name: pgTargetToe; }
#phaseGuide .a-target { animation-name: pgTargetPulse; }
@media (prefers-reduced-motion: reduce) { #phaseGuide .anim { animation: none; } }
/* Stav kroků na tlačítkách (paintSteps v šabloně): navazující krok jantarový */
.st-next, label.st-next span { background: var(--amber) !important; color: #000 !important; }

/* ---------- Naměřeno ---------- */
.readout { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--dust); }
.readout:last-of-type { border-bottom: 0; }
.readout .k { font-size: 13px; font-weight: 600; color: var(--g600); }
.readout .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.readout .v small { font-size: 12px; font-weight: 600; color: var(--g600); margin-left: 2px; }
.readout .v.big { font-size: 34px; color: var(--grass-text); }
.m-allow.field { margin: 12px 0; padding: 12px 14px; background: #fff; border-radius: 10px; border-left: 4px solid var(--amber); }
.m-allow label { font-size: 14px; font-weight: 800; }
.m-allow .hint { margin: 2px 0 0; font-size: 13px; }
.m-scale { display: none; }

/* ---------- CTA a finální akce ---------- */
#ctaBar { margin: 12px 0 0; }
#ctaBar button { width: 100%; min-height: 56px; font-size: 15px; display: block; line-height: 1.25; }
#ctaBar button small { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0; opacity: 0.85; }
#finalActions { margin: 12px 0 0; display: grid; gap: 8px; }
#finalActions button, #finalActions a { width: 100%; }
#backToGuide { margin: 0 0 12px; }

/* ---------- Změřená chodidla (miniatury) ---------- */
#shots .shot { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--dust);
  border-radius: var(--radius-card); padding: 10px; margin: 0 0 8px; }
#shots img { height: 140px; width: auto; border-radius: 8px; flex: none; }
#shots .sh-body { flex: 1; min-width: 150px; }
#shots .meta { font-size: 14px; font-weight: 700; margin-top: 8px; line-height: 1.4; }
#shots .meta .u { font-weight: 500; color: var(--g600); }

/* ---------- E-mail s výsledky ---------- */
#emailRow { max-width: 600px; }
#emailRow .field__title { display: block; font-size: 18px; font-weight: 800; margin: 0 0 10px; }
#emailRow .row { flex-wrap: nowrap; }
#emailRow .row input { flex: 1; min-width: 0; }
#emailRow .row > button { width: auto; flex: none; }
#emailRow .check { margin-top: 10px; }

/* ---------- Finální banner: trávníková plocha, kupón bíle ---------- */
#finalBanner { margin: 20px 0 0; padding: 28px 20px; border-radius: var(--radius-card); background: var(--grass); color: #fff; text-align: center; }
#finalBanner .fb-title { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; margin: 0 0 10px; }
#finalCount { margin: 0 auto 18px; font-size: 24px; font-weight: 800; line-height: 1.25; max-width: 720px; }
.coupon { display: inline-block; background: #fff; color: #000; border-radius: 10px; padding: 18px 20px; max-width: 100%; }
.coupon__title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.coupon__title svg { color: var(--cherry); }
.coupon__row { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
#discountCode { background: var(--snow); border: 2px dashed var(--cherry); color: var(--cherry); font-weight: 800; padding: 8px 20px; border-radius: 8px; font-size: 28px; letter-spacing: 0.08em; }
#btnCopyCode { background: var(--cherry); color: #fff; }
#btnCopyCode:hover { background: #b00030; color: #fff; }
.coupon__hint { font-size: 13px; color: var(--g600); margin-top: 10px; }

/* ---------- Dialogy (components/_dialog.scss) ---------- */
dialog { border: 0; border-radius: 8px; padding: 0; background: #fff; color: #000; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
#guideModal { width: 100%; max-width: min(960px, 94vw); max-height: 90vh; }
#guideModal .gm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0;
  padding: 14px 18px; border-bottom: 1px solid var(--g200); position: sticky; top: 0; background: #fff; z-index: 1; }
#guideModal .gm-head strong { font-size: 18px; font-weight: 800; }
#guideModal .gm-body { padding: 18px; overflow: auto; max-height: calc(90vh - 70px); }
#guideModal .gm-body > p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--g700); }
#emailAskModal { width: 100%; max-width: 420px; padding: 24px 20px; text-align: center; }
#emailAskModal h3 { font-size: 20px; margin: 0 0 8px; }
#emailAskModal p { margin: 0 0 16px; font-size: 14px; color: var(--g600); line-height: 1.45; }
#emailAskModal .ask-btns { display: grid; gap: 10px; }
#emailAskModal button { width: 100%; }

/* ---------- Fotonávod (partials/foot_photo_guide.html) ---------- */
.foot-guide .wp { background: #fff; color: #000; box-shadow: inset 0 0 0 1px var(--g300); padding: 8px 14px; min-height: 36px; font-size: 13px; letter-spacing: 0; }
.foot-guide .wp.on { background: var(--grass); color: #fff; box-shadow: none; }
.foot-guide .fg-num { background: var(--grass); }
.foot-guide img { border-radius: 10px; }
.foot-guide .note { color: var(--g600); border-left-color: var(--grass); }

/* ---------- Šipkový ovladač bodu ---------- */
#nudgePad { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 70;
  background: #fff; border: 1px solid var(--dust); border-radius: var(--radius-card); box-shadow: var(--shadow-lg); padding: 10px 12px 12px; }
#nudgePad .np-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 8px; }
#nudgeLabel { font-size: 13px; font-weight: 800; }
#nudgePad #nudgeClose { padding: 7px 14px; min-height: 0; font-size: 13px; }
#nudgePad .np-grid { display: grid; grid-template-columns: repeat(3, 48px); grid-auto-rows: 48px; gap: 6px; justify-content: center; }
#nudgePad .np-btn { width: 48px; height: 48px; min-height: 0; padding: 0; background: #fff; color: var(--grass);
  box-shadow: inset 0 0 0 2px var(--grass); border-radius: 8px; touch-action: none; -webkit-user-select: none; user-select: none; }
#nudgePad .np-btn:active { background: var(--grass); color: #fff; }
#nudgePad .np-up { grid-column: 2; grid-row: 1; }
#nudgePad .np-left { grid-column: 1; grid-row: 2; }
#nudgePad .np-mid { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: center; }
#nudgePad .np-mid span { width: 10px; height: 10px; border-radius: 50%; background: var(--dust); }
#nudgePad .np-right { grid-column: 3; grid-row: 2; }
#nudgePad .np-down { grid-column: 2; grid-row: 3; }

/* ---------- Plovoucí šipka „dole je toho víc" ---------- */
#scrollHint { position: fixed; left: 50%; bottom: 14px; z-index: 60; pointer-events: none; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(27, 136, 71, 0.9); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); animation: scrollNudge 1.6s ease-in-out infinite; }
@keyframes scrollNudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { #scrollHint { animation: none; transform: translate(-50%, 0); } }

/* ---------- Průvodce po obrazovkách (fáze řídí body[data-ph]) ----------
   1 = jen nahrání, 3 = fotka s rohy a body + Naměřeno vpravo, 4 = výsledek. */
body[data-ph="1"] aside { display: none; }
body[data-ph="4"] #ctaBar { display: none; }
body:not([data-ph="4"]) #emailRow { display: none; }
#btnDone { display: none; }
body[data-ph="3"] #btnDone { display: block; }
body[data-ph="1"] #btnReset { display: none; }
body[data-ph="3"] label.file, body[data-ph="4"] label.file { display: none; }
body[data-ph="3"] #subjectRow, body[data-ph="4"] #subjectRow { display: none; }
body:not([data-ph="1"]) #settingsRow { display: none; }
body[data-ph="4"] #btnReset, body[data-ph="4"] #btnAuto, body[data-ph="4"] #btnFlip { display: none; }
body:not([data-ph="4"]) .m-allow { display: none; }
body[data-ph="4"] .stage, body[data-ph="4"] #hint, body[data-ph="4"] #phaseGuide { display: none !important; }
body:not([data-ph="4"]) #shots { display: none !important; }
body:not([data-ph="4"]) #finalActions { display: none; }
body:not([data-ph="4"]) #backToGuide { display: none; }
/* Pomocné akce ve fázi 3 v jedné řadě i na telefonu */
body[data-ph="3"] #shootRow { flex-wrap: nowrap; }
body[data-ph="3"] #shootRow > button { flex: 1 1 0; min-width: 0; width: auto; padding: 10px 6px; font-size: 13px; letter-spacing: 0; }
/* Na výsledku jdou naměřené míry jako první i na telefonu */
@media (max-width: 859px) { body[data-ph="4"] aside { order: -1; } }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .site-head__logo img { height: 26px; }
  .hero h1 { font-size: 21px; }
  .hero .sub { font-size: 13px; }
  main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .card, .panel { padding: 14px; }
  /* Hlavní akce drží u palce jako lišta „Do košíku" v mobilní verzi e-shopu */
  body[data-ph="3"] #ctaBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--g200);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08); }
  /* Selecty pod sebou - vedle sebe se text orientace papíru nevešel */
  #settingsRow .set-grid { grid-template-columns: 1fr; }
  #subjectBtns label { font-size: 14px; padding: 10px 8px; }
  /* Šipka scrollu nesmí zajet pod pevnou lištu s CTA */
  body[data-ph="3"] #scrollHint { bottom: calc(96px + env(safe-area-inset-bottom)); }
  #emailRow .row { flex-wrap: wrap; }
  #emailRow .row > button { width: 100%; }
  #shots img { height: 110px; }
  #discountCode { font-size: 24px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  body[data-ph="1"] .grid { grid-template-columns: minmax(0, 760px); }
  /* Pravý sloupec se lepí celý: CTA musí být vidět i u vysoké fotky */
  body[data-ph="3"] aside { position: sticky; top: 12px; align-self: start; }
  .steps { gap: 10px; margin-bottom: 24px; }
  .step { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px 14px; font-size: 14px; text-align: left; }
  .row > button, .row > label.file, .row > label.file span { width: auto; }
  .row > label.file { flex: 0 1 auto; }
  .hero h1 { font-size: 30px; }
  .hero__in { padding-top: 28px; }
  .site-head__in { padding: 16px 20px; }
  .site-head__logo img { height: 34px; }
  main { padding-top: 24px; }
  .panel { padding: 20px; }
  #finalBanner { padding: 36px 24px; }
  #finalCount { font-size: 30px; }
}
