/* ===== RealTvorba — landing styles ===== */

:root {
  /* Světlá stránka jako appka po #715. Signal je aktuální
     realtech červená, ne starší app red před #747. */
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #14171C;
  --ink-soft: #4A515C;
  --line: #E2E6EB;
  --panel: #14171C;
  --signal: #E5322D;
  --signal-dark: #C52B27;
  --steel: #2B4A6F;
  --preview: #0F1216;
  --on-signal: #FFFFFF;

  --maxw: 1100px;
  --maxw-narrow: 720px;
  --radius: 12px;
  --radius-control: 8px;
  --shadow-card: 0 1px 3px rgba(20, 23, 28, 0.06), 0 4px 12px rgba(20, 23, 28, 0.04);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--signal);
  color: var(--on-signal);
}

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

a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.container.narrow { max-width: var(--maxw-narrow); }

/* ===== Accessibility helpers ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: var(--on-signal);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  padding: clamp(48px, 10vw, 110px) 0 clamp(40px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 18% 0%, color-mix(in srgb, var(--steel) 10%, transparent), transparent 72%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero-copy { min-width: 0; }
/* Z10253: --panel + 1px --line bez stínu na --bg splývalo.
   Pravá polovina hero na desktopu pak vypadá prázdně, i když HTML
   náhled (Z550) tam je. Karta musí vystoupit stínem a číslo se hýbat. */
.hero-preview {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  box-shadow: var(--shadow-card);
}
.hero-preview-label {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-preview-stage {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--panel);
  background:
    radial-gradient(120% 80% at 20% 0%, color-mix(in srgb, var(--steel) 22%, transparent), transparent 55%),
    var(--preview);
  box-shadow: inset 0 -28px 48px rgba(0, 0, 0, 0.35);
}
.hero-preview-value {
  margin: 0;
  color: var(--on-signal);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  animation: hero-count 2.4s ease-out both;
}
.hero-preview-caption {
  margin: 14px 0 0;
  color: var(--ink-soft);
}
@keyframes hero-count {
  from { transform: scale(0.86); opacity: 0.35; }
  to { transform: none; opacity: 1; }
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero-title {
  font-size: clamp(2.1rem, 5.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 0.5em;
  max-width: 16ch;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2.2em;
}

/* ===== CTA block / form ===== */
/* Z1034: --surface + 1px --line na --bg splývaly. Karta musí
   vystoupit světlejším podkladem, silnějším okrajem a stínem. */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  max-width: 620px;
  box-shadow: var(--shadow-card);
}
.cta-lead {
  margin: 0 0 1.1em;
  font-size: 1.05rem;
}
.cta-lead strong { color: var(--signal); }

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Z10078: --bg + 1px --line uvnitř --panel splývaly.
   Pole musí vystoupit světlejším podkladem a silnějším okrajem. */
.form-row input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
}
.form-row input[type="email"]::placeholder { color: color-mix(in srgb, var(--ink-soft) 72%, var(--bg)); }
.form-row input[type="email"]:focus-visible {
  border-color: var(--signal);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--signal);
  color: var(--on-signal);
  border: none;
  border-radius: var(--radius-control);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.12s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--signal-dark);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
/* Z10091: na mobilu se input zalomí na celý řádek a tlačítko
   s flex: 0 0 auto zůstalo užší — vpravo prázdné místo.
   Hero CTA je teď odkaz bez inputu, proto i .cta-block .btn-primary. */
@media (max-width: 640px) {
  .form-row .btn-primary {
    flex: 1 1 100%;
    width: 100%;
  }
  .cta-block .btn-primary {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Honeypot — hidden from users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--signal);
}
.consent-row label { cursor: pointer; }

.form-message {
  margin: 14px 0 0;
  font-size: 0.95rem;
  min-height: 1px;
}
.form-message.is-error { color: var(--signal-dark); }
.form-message.is-success { color: var(--signal); }

.form-success {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.microtext {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ===== Generic section ===== */
.section {
  padding: clamp(56px, 9vw, 100px) 0;
  border-top: 1px solid var(--line);
}
.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1.2em;
  line-height: 1.2;
}

/* ===== How it works ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
/* Z10013: --panel + 1px --line na --bg splývaly. Karty musí
   vystoupit silnějším okrajem a stínem, stejně jako CTA po Z1034. */
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  background: var(--steel);
  color: var(--on-signal);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
}
.step-title {
  font-size: 1.25rem;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--ink-soft); }

/* ===== Templates ===== */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
/* Z10274: karty šablon i sekce nad nimi splývaly s kroky.
   Obecné .card necháváme — ceník ho sdílí. Šablony mají vlastní
   podklad a stín, ať řada nevypadá jako drátěný model. */
.templates {
  background: var(--surface);
}
.templates .card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.card-title {
  font-size: 1.2rem;
  margin: 0 0 0.35em;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Pricing ===== */
.pricing-intro {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 58ch;
  margin: -1em 0 2em;
}
.pricing-cards {
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pricing-cards--dva {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .pricing-cards { grid-template-columns: 1fr; }
}
/* Z10281: karta se natahuje v 3sloupcové mřížce, ale bez flex sloupce
   margin-top: auto na CTA nic nedělá. Studio bez paty pak zeje. */
.pricing-card {
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-card .card-title { font-size: 1.5rem; }
.pricing-card--soon {
  border-style: dashed;
  background: var(--bg);
}
.pricing-card--founding {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .pricing-cards--dva { grid-template-columns: 1fr; }
}
.price {
  color: var(--ink);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.7em;
}
.price small {
  color: var(--ink-soft);
  font-size: 0.45em;
  font-weight: 500;
  letter-spacing: 0;
}
.pricing-list {
  color: var(--ink-soft);
  margin: 0;
  padding-left: 1.2em;
}
.pricing-card .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  text-decoration: none;
}
.pricing-soon-note {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}
.pricing-list li + li { margin-top: 0.45em; }
.pricing-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 24px;
  padding: 22px 24px;
}
.pricing-note p { margin: 0; }
.pricing-note p + p { margin-top: 0.7em; }
.pricing-note strong { color: var(--signal); }

.card-visual {
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 20% 0%, color-mix(in srgb, var(--steel) 22%, transparent), transparent 55%),
    var(--preview);
  border: 1px solid var(--panel);
  box-shadow: inset 0 -24px 40px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  color: var(--on-signal);
}
.card-visual--number {
  flex-direction: column;
  gap: 6px;
  animation: scene-count 2.4s ease-out both;
}
.card-visual--number span {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-visual .scene-kicker,
.card-visual .scene-note,
.card-visual--chart .bar i,
.card-visual--timeline .dot i {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--on-signal) 72%, var(--steel));
}
.card-visual .scene-note { font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.card-visual--chart {
  align-items: flex-end;
  padding: 18px;
  gap: 12px;
}
.card-visual--chart .bar {
  flex: 1;
  background: var(--steel);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
  transform-origin: bottom;
  animation: scene-bar 1.6s ease-out both;
}
.card-visual--chart .bar:nth-child(2) {
  animation-delay: 0.12s;
}
.card-visual--chart .bar:nth-child(3) { animation-delay: 0.24s; }
.card-visual--chart .bar:nth-child(4) {
  animation-delay: 0.36s;
  background: var(--signal);
}
.card-visual--chart .bar:nth-child(1) { height: 35%; }
.card-visual--chart .bar:nth-child(2) { height: 60%; }
.card-visual--chart .bar:nth-child(3) { height: 45%; }
.card-visual--chart .bar:nth-child(4) { height: 85%; }
.card-visual--vs {
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  padding: 0 16px;
  animation: scene-vs 2s ease-in-out infinite alternate;
}
.card-visual--vs em {
  font-style: normal;
  color: color-mix(in srgb, var(--on-signal) 70%, var(--steel));
  font-size: 0.9rem;
  font-weight: 600;
}
.card-visual--timeline {
  gap: 0;
  padding: 0 24px;
}
.card-visual--timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 2px;
  background: color-mix(in srgb, var(--steel) 55%, var(--preview));
}
.card-visual--timeline .dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--steel);
  margin: 0 auto;
  flex: 1;
  animation: scene-dot 1.8s ease-out both;
}
.card-visual--timeline .dot:nth-child(2) {
  animation-delay: 0.18s;
}
.card-visual--timeline .dot:nth-child(3) {
  animation-delay: 0.36s;
  background: var(--signal);
}
.card-visual--timeline .dot i {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.card-visual--map {
  background-image:
    radial-gradient(circle at 30% 40%, var(--signal) 0 4px, transparent 5px),
    radial-gradient(circle at 65% 55%, var(--steel) 0 4px, transparent 5px),
    linear-gradient(120deg, transparent 45%, color-mix(in srgb, var(--steel) 55%, transparent) 46% 48%, transparent 49%);
  background-color: var(--preview);
  animation: scene-map 3.2s ease-in-out infinite alternate;
}
.card-visual--map span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.templates-note {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ===== Audience ===== */
.audience-lead {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  margin: 0 0 1em;
}
.audience p:last-child { color: var(--ink-soft); margin: 0; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--steel);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.site-footer p { margin: 0 0 6px; }
.footer-links { color: var(--ink-soft); }

/* ===== Legal page ===== */
.legal { border-top: none; }
.legal p { max-width: 68ch; }
.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.8em 0 0.5em;
  letter-spacing: -0.01em;
}
.legal-updated { color: var(--ink-soft); }
.back-link { margin-top: 32px; }
/* Z1057: v paticce odkaz nesmi znovu odplavat 32px nad znacku. */
.site-footer .back-link { margin-top: 0; margin-bottom: 12px; }

/* ===== Scroll fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}
@keyframes scene-count {
  from { transform: scale(0.86); opacity: 0.35; }
  to { transform: none; opacity: 1; }
}
@keyframes scene-bar {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to { transform: none; opacity: 0.85; }
}
@keyframes scene-vs {
  from { letter-spacing: -0.04em; filter: drop-shadow(0 0 0 transparent); }
  to { letter-spacing: 0.04em; filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--steel) 45%, transparent)); }
}
@keyframes scene-dot {
  from { transform: scale(0.4); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}
@keyframes scene-map {
  from { background-position: 0 0, 0 0, 0 0; filter: saturate(0.85); }
  to { background-position: 6px -4px, -4px 6px, 10px 0; filter: saturate(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
  .card-visual--number,
  .card-visual--chart .bar,
  .card-visual--vs,
  .card-visual--timeline .dot,
  .card-visual--map,
  .hero-preview-value { animation: none; }
}
