/* AI Reality Check - styles (Transformio brand) v2
 * Dark-first, Midnight blue, turquoise + candy pink, Sora. Vzdušná grafika, arrow motív.
 * Zdroj: brand/transformio_brand_identity.pdf.
 */

:root {
  --font: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --bg:        #05071A;
  --bg-2:      #070a24;
  --surface:   #0d1030;
  --surface-2: #151a3d;
  --surface-3: #1b2150;
  --text:      #ffffff;
  --text-soft: #c9cdde;
  --muted:     #7c82a3;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.15);

  --accent:    #21C1E1;
  --accent-dk: #17a6c6;
  --accent-soft: rgba(33,193,225,.12);
  --pink:      #FA2FB5;
  --pink-soft: rgba(250,47,181,.10);
  --pop:       #DFFF24;
  --purple:    #806BEC;

  --grad:      linear-gradient(135deg, #21E1E1 0%, #FA2FB5 100%);
  --grad-soft: linear-gradient(135deg, rgba(33,225,225,.16), rgba(250,47,181,.16));

  --radius:    18px;
  --radius-sm: 11px;
  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 12px 34px rgba(0,0,0,.28);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.45);
  --maxw:      720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* vzdušná grafika v pozadí - jemné brand bubliny */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48vw 42vh at 88% -8%, rgba(33,193,225,.12), transparent 60%),
    radial-gradient(42vw 40vh at -6% 108%, rgba(250,47,181,.10), transparent 58%),
    radial-gradient(30vw 30vh at 50% 50%, rgba(128,107,236,.05), transparent 70%);
}

/* ---------- hlavička / päta ---------- */
.site-head { border-bottom: 1px solid var(--line); background: rgba(5,7,26,.72); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.site-head-inner { max-width: var(--maxw); margin: 0 auto; padding: 15px 22px; display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 26px; width: auto; display: block; }
.head-tag { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.site-foot { border-top: 1px solid var(--line); }
.site-foot p { max-width: var(--maxw); margin: 0 auto; padding: 18px 22px; font-size: 12.5px; color: var(--muted); }

main { flex: 1; }
.screen { max-width: var(--maxw); margin: 0 auto; padding: 48px 22px 72px; }
.anim-in { animation: fadeUp .45s cubic-bezier(.22,.61,.36,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- tlačidlá ---------- */
.btn { font-family: inherit; font-size: 15.5px; font-weight: 600; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 24px; cursor: pointer; transition: .18s cubic-bezier(.22,.61,.36,1); display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--accent); color: #041018; font-weight: 700; box-shadow: 0 6px 20px rgba(33,193,225,.22); }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(33,193,225,.34); }
.btn-primary:disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-lg { padding: 15px 34px; font-size: 16.5px; }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-arrow { transition: transform .2s; }
.btn:not(:disabled):hover .btn-arrow { transform: translateX(3px); }
.btn.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }
.link-btn { display: block; margin: 20px auto 0; background: none; border: none; color: var(--accent); font: inherit; font-size: 14.5px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- intro ---------- */
.intro-card { text-align: center; padding: 20px 0; }
.arrow-mark { width: 54px; height: 54px; margin: 0 auto 22px; display: block; filter: drop-shadow(0 6px 18px rgba(33,193,225,.25)); animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.brand-badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line-2); padding: 7px 16px; border-radius: 100px; margin-bottom: 26px; }
.intro-card h1 { font-size: 42px; line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin-bottom: 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 18.5px; font-weight: 300; color: var(--text-soft); max-width: 56ch; margin: 0 auto 24px; }
.intro-meta { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.pill { font-size: 13px; font-weight: 500; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); padding: 7px 15px; border-radius: 100px; }
.muted { color: var(--muted); font-size: 14.5px; }
.outcome { font-weight: 600; margin: 0 auto 30px; max-width: 50ch; font-size: 16px; }
.unlock-note { display: flex; align-items: center; gap: 12px; max-width: 52ch; margin: 26px auto 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; font-size: 14px; color: var(--text-soft); font-weight: 300; }
.unlock-note .arrow-mark { width: 30px; height: 30px; flex: 0 0 30px; margin: 0; animation: none; }

/* ---------- otázka ---------- */
.q-top { margin-bottom: 36px; }
.stepper { display: flex; gap: 7px; margin-bottom: 16px; }
.stepper .dot { width: 26px; height: 4px; border-radius: 100px; background: var(--surface-2); transition: .3s; }
.stepper .dot.done { background: var(--accent); opacity: .55; }
.stepper .dot.cur { background: var(--grad); width: 40px; }
.progress { height: 5px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--grad); border-radius: 100px; transition: width .4s cubic-bezier(.22,.61,.36,1); }
.q-meta { display: flex; justify-content: space-between; margin-top: 11px; font-size: 12.5px; }
.q-tag { color: var(--accent); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 12px; }
.q-count { color: var(--muted); font-weight: 500; }

.q-stage { min-height: 40vh; }
.anim-next { animation: slideNext .38s cubic-bezier(.22,.61,.36,1); }
.anim-back { animation: slideBack .38s cubic-bezier(.22,.61,.36,1); }
@keyframes slideNext { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

.q-title { font-size: 27px; line-height: 1.25; letter-spacing: -.025em; font-weight: 700; margin-bottom: 10px; }
.q-help, .q-note { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.q-note { font-style: italic; }

.cards { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }
.card { display: flex; align-items: center; gap: 15px; text-align: left; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.45; color: var(--text-soft); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 17px 20px; cursor: pointer; transition: .16s cubic-bezier(.22,.61,.36,1); }
.card:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--text); transform: translateX(3px); }
.card.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 1px var(--accent), 0 10px 28px rgba(33,193,225,.16); }
.card-key { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); transition: .16s; }
.card:hover .card-key { border-color: var(--accent); color: var(--text); }
.card.sel .card-key { background: var(--accent); border-color: var(--accent); color: #041018; }
.card-txt { flex: 1; }
/* multi check */
.card-check .tick { flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 7px; position: relative; transition: .16s; }
.card-check.sel .tick { background: var(--accent); border-color: var(--accent); }
.card-check.sel .tick::after { content: "✓"; color: #041018; font-size: 14px; font-weight: 800; position: absolute; top: -2px; left: 3.5px; }
.q-limit { font-size: 13px; color: var(--muted); margin-top: 14px; }
.q-limit.flash { color: var(--pop); font-weight: 600; }

/* nástroje / chips */
.tool-group { margin-top: 22px; }
.tool-group-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: inherit; font-size: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 100px; padding: 9px 16px; cursor: pointer; transition: .16s; color: var(--text-soft); }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.sel { background: var(--accent); border-color: var(--accent); color: #041018; font-weight: 600; }
.chip.chip-excl.sel { background: var(--surface-3); border-color: var(--line-2); color: var(--text); }
.chip.static { cursor: default; background: var(--accent-soft); border-color: var(--line); color: var(--accent); }

.ctx-input { width: 100%; font-family: inherit; font-size: 15px; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); margin-top: 16px; background: var(--surface); color: var(--text); transition: .16s; }
.ctx-input::placeholder { color: var(--muted); }
.ctx-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ctx-input.hidden, .hidden { display: none; }

.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; gap: 12px; }

/* ---------- výsledok ---------- */
.result-inner { max-width: 680px; margin: 0 auto; }
.result-hero { display: flex; align-items: center; gap: 30px; margin-bottom: 20px; }
.ring { width: 128px; height: 128px; flex: 0 0 auto; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.22,.61,.36,1); }
.ring-num { font-size: 38px; font-weight: 800; fill: var(--text); }
.ring-unit { font-size: 12px; fill: var(--muted); }
.result-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-bottom: 7px; }
.level-badge { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.level-sub { color: var(--text-soft); font-weight: 300; font-size: 15.5px; margin-top: 8px; }

.radar-card { display: flex; justify-content: center; margin: 8px 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.radar { width: 100%; max-width: 440px; height: auto; }
.radar-grid { fill: none; stroke: var(--line); }
.radar-spoke { stroke: var(--line); }
.radar-area { fill: rgba(33,193,225,.16); stroke: url(#radarGrad); stroke-width: 2.5; }
.radar-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.radar-label { font-size: 13.5px; font-weight: 600; fill: var(--text); }
.radar-val { font-size: 12.5px; fill: var(--muted); font-weight: 600; }

.level-free { font-size: 16.5px; font-weight: 300; color: var(--text-soft); margin: 24px 0; }
.weakest-free { background: var(--pink-soft); border: 1px solid rgba(250,47,181,.25); border-left: 3px solid var(--pink); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 15.5px; color: var(--text-soft); }
.wk-label { color: var(--pink); font-weight: 700; }
.weakest-free strong { color: var(--text); }

/* gate */
.gate { margin-top: 40px; border-radius: var(--radius); padding: 2px; background: var(--grad); box-shadow: var(--shadow-lg); }
.gate-inner { background: var(--bg-2); border-radius: calc(var(--radius) - 2px); padding: 34px 30px; text-align: center; }
.gate h3 { font-size: 23px; font-weight: 700; margin-bottom: 12px; }
.gate > .gate-inner > p { color: var(--text-soft); font-weight: 300; font-size: 15px; max-width: 54ch; margin: 0 auto 24px; }
.gate-form { max-width: 380px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.gate-form .ctx-input { margin-top: 0; background: var(--surface); }
.gate-form .btn { justify-content: center; }
.consent { font-size: 13px; color: var(--text-soft); display: flex; gap: 9px; align-items: flex-start; text-align: left; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.gate-err { color: var(--pink); font-size: 13.5px; }

/* ---------- plný report ---------- */
.full-report { margin-top: 20px; }
.report-divider { display: flex; align-items: center; gap: 16px; margin: 44px 0 8px; }
.report-divider::before, .report-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.report-divider span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.report-intro p { font-size: 15px; color: var(--muted); font-style: italic; font-weight: 300; margin: 22px 0; }
.section-h { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin: 44px 0 18px; font-weight: 700; }
.section-h.no-margin { margin-top: 8px; }
.report-level { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.report-level h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.report-level p { color: var(--text-soft); font-weight: 300; font-size: 15.5px; }

/* odomknutý rozhovor v reporte */
.iv-unlock { margin-top: 20px; border-radius: var(--radius); padding: 2px; background: var(--grad); box-shadow: var(--shadow-lg); }
.iv-unlock-inner { background: var(--bg-2); border-radius: calc(var(--radius) - 2px); padding: 28px 30px; text-align: center; }
.iv-unlock-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.iv-unlock h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.iv-unlock p { color: var(--text-soft); font-weight: 300; font-size: 15px; max-width: 56ch; margin: 0 auto 20px; }
.iv-unlock .btn { justify-content: center; }
.iv-demo-note { margin-top: 12px; font-size: 12.5px; }

.cap-block { background: var(--pink-soft); border: 1px solid rgba(250,47,181,.22); border-radius: var(--radius); padding: 24px 26px; margin-top: 18px; }
.cap-block h4 { font-size: 17px; margin-bottom: 10px; color: var(--pink); font-weight: 700; }
.cap-block p { font-size: 15px; color: var(--text-soft); font-weight: 300; }
.cap-good { margin-top: 12px; font-weight: 600 !important; color: var(--text) !important; }

.pillar-blocks { display: flex; flex-direction: column; gap: 14px; }
.pillar-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.pillar-block.is-weakest { border-color: rgba(250,47,181,.35); box-shadow: inset 3px 0 0 var(--pink), var(--shadow); }
.pb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.pb-head h4 { font-size: 18.5px; font-weight: 700; }
.pb-score { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.is-weakest .pb-score { color: var(--pink); }
.pb-score small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pb-bars { display: flex; gap: 8px; margin-bottom: 18px; }
.ind-bar { flex: 1; }
.ind-name { font-size: 10.5px; color: var(--muted); display: block; margin-bottom: 5px; text-align: center; }
.ind-track { height: 6px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.ind-fill { height: 100%; background: var(--accent); border-radius: 100px; }
.is-weakest .ind-fill { background: var(--pink); }
.pillar-block > p { font-size: 15px; color: var(--text-soft); font-weight: 300; }
.pillar-block strong { color: var(--text); font-weight: 600; }

.weakest-headline { font-size: 18px; margin-bottom: 8px; }
.weakest-headline strong { color: var(--pink); font-weight: 700; }
.weakest-section p { font-size: 15.5px; color: var(--text-soft); font-weight: 300; }

/* profil */
.profile-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 26px 26px; box-shadow: var(--shadow); }
.profile-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.profile-row:last-child { border-bottom: none; }
.profile-row h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 11px; font-weight: 700; }
.profile-row p { font-size: 15px; color: var(--text-soft); font-weight: 300; }
.report-chips { margin-bottom: 13px; }

/* kroky */
.steps-section .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 12px; box-shadow: var(--shadow); }
.step-diy { border-left: 3px solid var(--pop); }
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; flex-wrap: wrap; }
.step-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.step-diy .step-label { color: var(--pop); }
.diy-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #041018; background: var(--pop); padding: 3px 10px; border-radius: 100px; }
.svc-code { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.step p { font-size: 15px; color: var(--text-soft); font-weight: 300; }
.step-blocker { margin-bottom: 14px; }

.benchmark { margin-top: 26px; }
.final-cta { margin-top: 40px; border-radius: var(--radius); padding: 2px; background: var(--grad); }
.final-cta-inner { background: var(--bg-2); border-radius: calc(var(--radius) - 2px); padding: 34px 30px; text-align: center; }
.final-cta h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.final-cta p { color: var(--text-soft); font-weight: 300; max-width: 50ch; margin: 0 auto 22px; font-size: 15.5px; }
.final-cta .btn { justify-content: center; }
.disclaimer { font-size: 13.5px; color: var(--muted); font-style: italic; font-weight: 300; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.report-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- rozhovor ---------- */
.lead-form { max-width: 400px; margin: 26px auto 10px; display: flex; flex-direction: column; gap: 10px; }
.lead-form .ctx-input { margin-top: 0; }
.chat-head { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); max-width: 640px; margin-left: auto; margin-right: auto; }
.chat-avatar { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px; }
.chat-avatar .arrow-mark { width: 26px; height: 26px; margin: 0; animation: none; filter: none; }
.chat-name { font-weight: 700; font-size: 15px; }
.chat-status { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(33,193,225,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(33,193,225,.5)} 70%{box-shadow:0 0 0 7px rgba(33,193,225,0)} 100%{box-shadow:0 0 0 0 rgba(33,193,225,0)} }
.interview .chat { max-width: 640px; margin: 0 auto; min-height: 54vh; display: flex; flex-direction: column; gap: 16px; padding: 20px 0; }

/* riadok správy = avatar + bublina */
.msg-row { display: flex; align-items: flex-end; gap: 10px; animation: fadeUp .35s ease; }
.msg-row.ai { align-self: flex-start; max-width: 86%; }
.msg-row.user { align-self: flex-end; max-width: 86%; flex-direction: row; justify-content: flex-end; }
.msg-av { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); }
.msg-av .arrow-mark { width: 19px; height: 19px; margin: 0; animation: none; filter: none; }
.msg-av.user-av { background: var(--accent); border-color: var(--accent); color: #041018; font-size: 12px; font-weight: 700; }
.msg { padding: 13px 17px; border-radius: 16px; font-size: 15.5px; font-weight: 300; line-height: 1.5; }
.msg-who { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; opacity: .65; }
.msg.ai { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text-soft); }
.msg.ai .msg-who { color: var(--accent); opacity: 1; }
.msg.user { background: var(--accent); color: #041018; font-weight: 400; border-bottom-right-radius: 4px; }
.msg.user .msg-who { color: #041018; }
.msg.typing { display: flex; gap: 4px; padding: 15px 17px; }
.msg.typing span { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.chat-foot { text-align: center; margin-top: 24px; }
.chat-foot .btn { justify-content: center; }

/* composer (živý rozhovor) */
.composer-wrap { max-width: 640px; margin: 18px auto 0; }
.limit-notice { font-size: 13px; color: var(--pop); background: rgba(223,255,36,.08); border: 1px solid rgba(223,255,36,.25); border-radius: 100px; padding: 8px 16px; margin-bottom: 10px; text-align: center; }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; font-family: inherit; font-size: 15.5px; line-height: 1.5; padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--text); resize: none; overflow: hidden; max-height: 160px; }
.composer textarea::placeholder { color: var(--muted); }
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer .btn { flex: 0 0 auto; width: 46px; height: 46px; padding: 0; border-radius: 12px; font-size: 20px; justify-content: center; }
.composer-done { text-align: center; font-size: 14.5px; color: var(--muted); padding: 14px; }

/* citácie z rozhovoru v reporte */
.quotes-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px 22px; box-shadow: var(--shadow); }
.quote-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.quote-row:last-child { border-bottom: none; }
.quote-row h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.quote-row p { font-size: 15.5px; color: var(--text-soft); font-style: italic; font-weight: 300; }
.quote-row p::before { content: '„'; color: var(--accent); } .quote-row p::after { content: '“'; color: var(--accent); }

/* ---------- kontaktný modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(3,5,16,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadeUp .25s ease; overflow-y: auto; }
.modal { position: relative; width: 100%; max-width: 480px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-lg); animation: modalIn .35s cubic-bezier(.22,.61,.36,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); font-size: 15px; cursor: pointer; transition: .15s; }
.modal-close:hover { border-color: var(--accent); color: var(--text); }
.modal-head { text-align: center; margin-bottom: 22px; }
.modal-head .arrow-mark { width: 40px; height: 40px; margin: 0 auto 14px; animation: none; }
.modal-head h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.modal-head p { font-size: 14.5px; color: var(--text-soft); font-weight: 300; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.field .ctx-input { margin-top: 0; background: var(--surface); }
.field textarea.ctx-input { resize: vertical; font-family: inherit; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.modal-form .consent { margin-top: 2px; }
.modal-form .btn { justify-content: center; margin-top: 4px; }
.modal-err { color: var(--pink); font-size: 13px; }
.modal-note { font-size: 11.5px; color: var(--muted); text-align: center; }
.modal-success { text-align: center; padding: 12px 0; }
.modal-success .arrow-mark { width: 46px; height: 46px; margin: 0 auto 16px; }
.modal-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.modal-success p { font-size: 15px; color: var(--text-soft); font-weight: 300; margin-bottom: 22px; }
.modal-success .btn { justify-content: center; }
@media (max-width: 480px) { .field-row { flex-direction: column; } .modal { padding: 28px 22px; } }

/* ---------- nové komponenty ---------- */
.tag-sub { color: var(--muted); font-weight: 400; }

/* textarea ako input (auto-grow) */
textarea.ctx-input { resize: none; overflow: hidden; font-family: inherit; line-height: 1.45; min-height: 46px; }
.role-other { margin-top: 12px; }

/* neutrálna postava - avatar respondenta */
.user-mark { width: 19px; height: 19px; }
.user-mark circle { fill: currentColor; }
.user-mark path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.msg-av.user-av { color: #041018; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); padding: 13px 22px; border-radius: 100px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 120; opacity: 0; transition: .3s cubic-bezier(.22,.61,.36,1); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* radar legenda - skóre pilierov ako bary pod grafom */
.pillar-bars { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.pbar { display: flex; align-items: center; gap: 14px; }
.pbar-name { flex: 0 0 130px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.pbar-track { flex: 1; height: 10px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.pbar-fill { display: block; height: 100%; background: var(--grad); border-radius: 100px; width: 0; animation: growBar 1s cubic-bezier(.22,.61,.36,1) forwards; }
.pbar-num { flex: 0 0 auto; min-width: 52px; text-align: right; font-size: 19px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.pbar-num small { font-size: 11px; color: var(--muted); font-weight: 500; }
.pbar.weak .pbar-name { color: var(--text); }
.pbar.weak .pbar-fill { background: var(--pink); }
.pbar.weak .pbar-num { color: var(--pink); }
@keyframes growBar { from { width: 0; } }

/* formulár - pripojenie výsledku + privacy */
.attach-opt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.attach-preview { display: inline-block; margin-top: 5px; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.privacy-note { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ---------- responsive ---------- */
/* tablet */
@media (max-width: 820px) {
  :root { --maxw: 640px; }
  .intro-card h1 { font-size: 36px; }
}
/* mobil */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .screen { padding: 28px 16px 52px; }
  .site-head-inner { padding: 13px 16px; }
  .logo-img { height: 22px; }
  .head-tag { font-size: 11px; }
  .tag-sub { display: none; }
  .arrow-mark { width: 46px; height: 46px; }
  .intro-card h1 { font-size: 27px; }
  .lead { font-size: 16.5px; }
  .intro-meta { gap: 7px; }
  .pill { font-size: 12px; padding: 6px 12px; }
  .q-title { font-size: 21px; line-height: 1.3; }
  .cards { margin-top: 20px; gap: 9px; }
  .card { font-size: 15px; padding: 14px 15px; gap: 11px; align-items: flex-start; }
  .card-key { flex-basis: 26px; width: 26px; height: 26px; font-size: 12.5px; }
  .q-nav { margin-top: 28px; gap: 10px; }
  .q-nav .btn { flex: 1; justify-content: center; padding: 13px 16px; }
  .result-hero { flex-direction: column; text-align: center; gap: 16px; }
  .ring { width: 108px; height: 108px; }
  .level-badge { font-size: 23px; }
  .radar-card { padding: 6px; }
  .pillar-stats { gap: 6px; }
  .pstat { padding: 11px 4px; }
  .pstat-num { font-size: 21px; }
  .pstat-name { font-size: 10.5px; }
  .pb-head h4 { font-size: 16.5px; }
  .pb-score { font-size: 25px; }
  .pb-bars { gap: 5px; }
  .pillar-block, .profile-section, .report-level, .steps-section .step, .cap-block { padding: 18px 18px; }
  .gate-inner, .final-cta-inner { padding: 26px 20px; }
  .section-h { margin: 34px 0 14px; }
  .msg-row.ai, .msg-row.user { max-width: 92%; }
  .msg { font-size: 15px; }
  .modal { padding: 26px 20px; }
  .modal-head h3 { font-size: 20px; }
  .field-row { flex-direction: column; gap: 14px; }
  .report-actions { gap: 8px; }
  .report-actions .btn { flex: 1 1 auto; font-size: 14px; padding: 11px 14px; }
  .toast { left: 16px; right: 16px; bottom: 18px; transform: translateY(20px); text-align: center; }
  .toast.show { transform: translateY(0); }
}
/* malé mobily */
@media (max-width: 380px) {
  .intro-card h1 { font-size: 24px; }
  .pstat-name { font-size: 9.5px; }
  .card-txt { font-size: 14.5px; }
  .pb-bars { flex-wrap: wrap; }
  .ind-bar { flex: 1 1 40%; }
}

/* ---------- print (PDF) ---------- */
@media print {
  :root { --bg:#fff; --bg-2:#fff; --surface:#fff; --surface-2:#eee; --text:#05071A; --text-soft:#1a2030; --muted:#555; --line:#ddd; --line-2:#ccc; }
  body { background:#fff; color:#05071A; font-size: 11pt; }
  body::before, .site-head, .site-foot, .gate, .report-actions, .q-nav, .link-btn, .final-cta { display: none !important; }
  .screen { padding: 0; }
  .pillar-block, .profile-section, .step, .report-level, .radar-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .grad-text { -webkit-text-fill-color: #05071A; }
}
