/* =========================================================
   Stagia — landing page
   Concept: "Spis k inzerci" — turn a property's paperwork
   dossier into an approved, ready-to-publish listing.
   Motif: Czech document / razítko (stamp) culture.
   ========================================================= */

:root {
  /* Palette */
  --ink: #14202b;          /* deep slate navy — text, dark sections */
  --ink-2: #243646;        /* secondary dark */
  --muted: #5a6b79;        /* secondary text */
  --paper: #eef1f4;        /* cool page background */
  --surface: #ffffff;      /* cards */
  --surface-2: #f7f9fb;    /* inset surfaces */
  --line: #d8dfe5;         /* hairlines / borders */
  --line-strong: #c2cdd6;

  /* Brand accent = official stamp red (the signature ink) */
  --stamp: #c2402f;
  --stamp-deep: #9e3325;
  --stamp-tint: #f6e4e0;

  /* Functional status colors (used only in pills) */
  --go: #1e8a5b;
  --go-tint: #e2f1ea;
  --wait: #b7791f;
  --wait-tint: #f6ecd9;
  --review: #4a6cb3;
  --review-tint: #e6ecf7;

  /* Type */
  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1140px;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 43, .05);
  --shadow-md: 0 18px 40px -24px rgba(20, 32, 43, .35);
  --shadow-lg: 0 40px 80px -40px rgba(20, 32, 43, .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0 0 18px;
}
.eyebrow--invert { color: #e79b8f; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 11px;
  --pad-x: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--ease), background-color .15s var(--ease),
              border-color .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.btn--lg { --pad-y: 15px; --pad-x: 24px; font-size: 16px; }

.btn--primary {
  background: var(--stamp);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--stamp-deep); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 241, 244, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(238, 241, 244, .94);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand__mark { display: inline-flex; }
.brand__name { font-size: 20px; }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  color: var(--muted);
}
.nav__links a { position: relative; padding: 4px 0; transition: color .15s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--stamp);
  transition: right .2s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.nav__cta { margin-left: 4px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 32, 43, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 32, 43, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__title {
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 800;
  margin-bottom: 22px;
}
.u-stamped {
  color: var(--stamp);
  text-decoration: underline;
  text-decoration-color: rgba(194, 64, 47, .28);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.hero__lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__note {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 44ch;
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
}

/* ---------- Hero dossier card (signature) ---------- */
.hero__panel { position: relative; }

.dossier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  /* visible so the razítko can press over the card's corner */
  overflow: visible;
}
.dossier::before {
  /* tab on the corner — a paper dossier cue */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 56px; height: 56px;
  background: linear-gradient(225deg, var(--paper) 0 50%, transparent 50%);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dossier__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.dossier__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.dossier__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; }

.readiness { margin-bottom: 20px; }
.readiness__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.readiness__label { font-size: 14px; color: var(--muted); }
.readiness__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--go);
}
.readiness__track {
  height: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.readiness__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--go), #34b07d);
  transition: width 1.1s var(--ease);
}
.readiness__bar.is-filled { width: var(--pct); }

.checklist { display: flex; flex-direction: column; gap: 2px; }
.checklist__item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.checklist__item:last-child { border-bottom: 0; }
.checklist__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.is-done .checklist__icon { background: var(--go-tint); color: var(--go); }
.is-wait .checklist__icon { background: var(--wait-tint); color: var(--wait); font-size: 9px; }
.is-review .checklist__icon { background: var(--review-tint); color: var(--review); }
.checklist__name { color: var(--ink-2); }

/* ---------- Pills ---------- */
.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill--done { background: var(--go-tint); color: var(--go); }
.pill--wait { background: var(--wait-tint); color: var(--wait); }
.pill--review { background: var(--review-tint); color: var(--review); }

/* ---------- STRIP ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
}
.strip__lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.strip__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); }
.strip__stats li { display: flex; flex-direction: column; gap: 2px; }
.strip__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--stamp);
  letter-spacing: -0.03em;
}
.strip__cap { font-size: 13.5px; color: var(--muted); max-width: 18ch; }

/* ---------- SECTIONS ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--muted { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section__head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section__title { font-size: clamp(28px, 4vw, 44px); }
.section__sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
}
.section__sub--invert { color: #a9b8c4; }

/* ---------- Cards grids ---------- */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--feat { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card--pain { position: relative; padding-top: 30px; }
.card--pain::before {
  content: "";
  position: absolute;
  top: 0; left: 26px; right: 26px;
  height: 3px;
  background: var(--stamp);
  border-radius: 0 0 3px 3px;
}
.card__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 15.5px; }

/* ---------- Steps (numbered real process) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--ink);
  padding: 28px 26px 32px;
  position: relative;
}
.step__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  color: #e79b8f;
  display: inline-block;
  margin-bottom: 18px;
}
.step__title { font-size: 20px; color: var(--paper); margin-bottom: 10px; }
.step__text { color: #a9b8c4; font-size: 15px; }

/* ---------- Feature cards ---------- */
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feat__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stamp);
  background: var(--stamp-tint);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.feat__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feat__text { color: var(--muted); font-size: 14.5px; }

/* ---------- Audience ---------- */
.audience {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.section--muted .audience { background: var(--surface-2); }
.audience__title { font-size: 23px; margin-bottom: 12px; }
.audience__text { color: var(--muted); margin-bottom: 18px; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink-2);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0; top: -1px;
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--go);
  background: var(--go-tint);
  border-radius: 999px;
}

/* ---------- Trust ---------- */
.trust {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.trust__list { display: grid; gap: 16px; }
.trust__list li {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--stamp);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--muted);
}
.trust__list strong { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--line-strong); }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--stamp);
  transition: transform .2s var(--ease);
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__q:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.faq__a {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Final CTA ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(64px, 9vw, 112px);
}
.cta__inner { max-width: 640px; margin-inline: auto; text-align: center; }
.cta__title { font-size: clamp(30px, 5vw, 50px); color: #fff; margin-bottom: 18px; }
.cta__sub { color: #a9b8c4; font-size: 18px; margin-bottom: 32px; }

.signup { text-align: left; max-width: 520px; margin-inline: auto; }
.signup__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a9b8c4;
  margin-bottom: 8px;
}
.signup__row { display: flex; gap: 10px; }
.signup__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 15px 16px;
}
.signup__input::placeholder { color: #9aa7b1; }
.signup__input.is-invalid { box-shadow: 0 0 0 2px #e79b8f; }
.signup__hint { margin-top: 12px; font-size: 13.5px; color: #8c9aa6; }
.signup__hint.is-error { color: #f0a99d; }
.signup__hint.is-success { color: #7ed3aa; }

/* Honeypot — present for bots, hidden from people */
.u-hp { display: none !important; }

/* Signup success state (replaces the form after submit) */
.signup-shell { max-width: 520px; margin-inline: auto; }
.signup-done {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  animation: done-in .4s var(--ease) both;
}
.signup-done[hidden] { display: none; }
.signup-done__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(126, 211, 170, .14);
  color: #7ed3aa;
}
.signup-done__check svg { width: 22px; height: 22px; }
.signup-done__title { font-size: 18px; color: #fff; margin: 0 0 4px; }
.signup-done__text { font-size: 14.5px; color: #a9b8c4; margin: 0; }

@keyframes done-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-bottom: 36px;
}
.brand--footer .brand__name { font-size: 22px; }
.footer__tag { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 34ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; color: var(--muted); align-content: start; }
.footer__nav a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 22px 30px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .cards--feat { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; }
  .trust { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .strip__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .cards--feat { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .signup__row { flex-direction: column; }
  .signup__row .btn { width: 100%; }
  .nav__cta { display: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .readiness__bar { width: var(--pct); transition: none; }
}
