/*
 * Korzaro marketing landing — standalone stylesheet.
 *
 * Deliberately NOT app/static/shared/brand_tokens.css: the app tokens carry a
 * light/dark admin theme and a status vocabulary a public page has no use for.
 * The palette values below are the same "Obloha" anchors so the two never
 * drift apart visually (sky-600 #256faf is the logo blue), plus one secondary
 * hue the app does not use as a lead colour — lilac #6d52be — so the landing
 * reads as its own surface rather than a screenshot of the admin.
 *
 * No build step and no external requests on purpose: one HTML file, one CSS
 * file, system fonts. Cloudflare Pages serves it as-is.
 */

:root {
  --ink: #0d1520;
  --ink-soft: #22303c;
  --muted: #5a6b7b;
  --line: #dfe8f0;
  --surface: #ffffff;
  --page: #f3f7fb;

  --brand: #256faf;
  --brand-dark: #2f6ea5;
  --brand-soft: #e3effa;
  --brand-line: #bedaf1;

  --accent: #6d52be;
  --accent-light: #b29eeb;
  --accent-soft: #ede9f9;

  /* Urgent findings. Same values as the app palette (--ohl-red-600 and
     --ohl-red-50), so a finding on the public page and a finding inside the
     product read as the same thing. */
  --alert: #b3352b;
  --alert-soft: #f9e6e3;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(13 21 32 / 0.04), 0 8px 24px rgb(13 21 32 / 0.06);
  --shadow-lg: 0 2px 4px rgb(13 21 32 / 0.06), 0 24px 60px rgb(13 21 32 / 0.12);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 650;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.1rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--brand-dark);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section--page {
  background: var(--page);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Centred intro block that opens most sections: eyebrow, heading, one lead
   paragraph. Spacing lives here rather than on style attributes so the page
   can ship a Content-Security-Policy without an inline-style exception. */
.section-head {
  text-align: center;
}

.section-head h2 + .lead{
  margin-top: 20px;
}

.lead + .lead {
  margin-top: 16px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(13 21 32 / 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  font-weight: 640;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
}

/* Logotype, same construction as the admin's _wordmark.html: plain live text
   until the Korzaro visual identity exists. */
.wordmark {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: rgb(255 255 255 / 0.72);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #fff;
}

/* Language switcher. Two short codes rather than country flags: a flag names a
   country, not a language, and this pair is read at a glance in either. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.lang-switch a {
  color: rgb(255 255 255 / 0.55);
}

.lang-switch a[aria-current] {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 820px) {
  .nav a:not(.btn) {
    display: none;
  }

  /* The switcher stays. On a phone it is the only way to change language, and
     the section links it sits beside are exactly the ones being hidden. */
  .nav .lang-switch a {
    display: inline;
  }

  /* Room for it: the desktop gap plus the switcher pushed the call to action
     onto two lines, which grew the whole header by 18 px. */
  .nav {
    gap: 14px;
  }

  .lang-switch {
    gap: 6px;
    font-size: 0.8rem;
  }

  .nav .btn {
    white-space: nowrap;
  }}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgb(255 255 255 / 0.78);
  padding: 88px 0 96px;
}

/* Two soft light sources — brand blue from the left, lilac from the right.
   They are the only place the secondary hue leads, which is what keeps the
   page from reading as "another blue SaaS". */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -280px;
  left: -160px;
  background: rgb(37 111 175 / 0.42);
}

.hero::after {
  width: 520px;
  height: 520px;
  bottom: -300px;
  right: -120px;
  background: rgb(109 82 190 / 0.38);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  /* 15ch was enough for the old four-word claim; this heading needs about
     19 characters on its first line and was being cut mid-sentence. Kept in
     ch rather than px so it shrinks together with the type. */
  max-width: 20ch;
  margin-inline: auto;
}

.hero h1 .hl {
  background: linear-gradient(96deg, var(--brand) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-form {
  margin-top: 34px;
  max-width: 520px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 620;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--primary:active {
  transform: translateY(1px);
}

/* The script disables the button while the address is in flight, and nothing
   said so: the page looked identical, so the natural move was to click again —
   which came back "Zkoušíš to moc rychle po sobě" and read like a rejection.
   The state existed; only its appearance was missing. */
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.btn--ghost {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.18);
  padding: 9px 16px;
  font-size: 0.95rem;
}

.btn--ghost:hover {
  background: rgb(255 255 255 / 0.18);
}

/* ------------------------------------------------------------ signup form */

.signup {
  display: flex;
  gap: 10px;
}

.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.signup input[type="email"]::placeholder {
  color: #8da1b5;
}

.signup input[type="email"]:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Honeypot — a field only an automated submitter fills in. Off-screen rather
   than display:none, which some form fillers skip. The input carries
   aria-hidden + tabindex="-1" itself (a wrapper alone still leaves it
   focusable), and its name is deliberately meaningless: called "website" it
   looked like a URL field and password managers filled it, which would have
   thrown away a real person's signup. */
.signup-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-note {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.5);
}

.signup-status {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 560;
  min-height: 1.4em;
}

.signup-status--ok {
  color: #5ec78f;
}

.signup-status--err {
  color: #ef8d84;
}

@media (max-width: 560px) {
  .signup {
    flex-direction: column;
  }

  .signup .btn {
    width: 100%;
  }}

/* Light-surface variant of the same form (closing CTA). */
.form-light .signup-note {
  color: var(--muted);
}

.form-light .signup input[type="email"] {
  border-color: var(--brand-line);
}

.form-light .signup-status--ok {
  color: #1a7a4a;
}

.form-light .signup-status--err {
  color: #b3352b;
}

/* ------------------------------------------------------------------- faq */

/* Answers stay open — no toggles (Mira, 2026-07-31). A visitor deciding
   whether to hand over an e-mail should not have to click five times to see
   what the answers are. */
.faq {
  /* auto, not 0 — a dl carries its own margin and would otherwise cancel the
     centring .narrow does. */
  margin: 34px auto 0;
  text-align: left;
}

.faq dt {
  font-weight: 620;
  color: var(--ink);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.faq dt:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq dd {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.faq dd:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- steps */

.steps {
  margin-top: 44px;
  /* The list keeps its semantics, but the browser marker would collide with
     the number drawn inside each card. One numbering, not two. */
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.sources {
  margin: 40px auto 0;
  font-size: 0.98rem;
  color: var(--muted);
  text-align: center;
}

.sources strong {
  color: var(--ink-soft);
  font-weight: 580;
}

.mail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mail-hd {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
  font-size: 0.85rem;
  color: var(--muted);
}

.mail-hd strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

/* ----------------------------------------------------------------- story */

.story {
  margin-top: 34px;
}

.story p + p {
  margin-top: 16px;
}

/* Legal page: same prose rhythm, smaller body, headings that break it up. */
.legal {
  font-size: 1rem;
}

.legal h3 {
  margin: 26px 0 10px;
}

.legal h3:first-child {
  margin-top: 0;
}

.story .sig {
  margin-top: 22px;
  font-weight: 620;
  color: var(--ink);
}

/* ------------------------------------------------------------------- cta */

.cta {
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: 28px;
  padding: 52px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta .lead {
  margin: 16px auto 0;
  max-width: 52ch;
}

.cta form {
  margin: 30px auto 0;
  max-width: 480px;
  text-align: left;
}

@media (max-width: 560px) {
  .cta {
    padding: 40px 22px;
  }}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.6);
  padding: 46px 0;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ================================================================
   Problem-first landing (September 2026)

   The page now argues before it offers: the visitor's situation, the
   sharper half of it, the turn, and only then the product. These rules
   cover the blocks that structure carries. Everything that already had a
   component — .step, .mail, .faq, .cta — reuses it untouched.
   ================================================================ */

/* ---------------------------------------------------------------- hero */

/* The claim is the brand line: it sits above the heading, small and spaced,
   so it reads as a signature rather than competing with the H1 underneath. */
.claim {
  display: block;
  margin-bottom: 18px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* The hero is wider than the reading column: the heading needs about 710 px
   on one line and the 760 px column broke it mid-sentence. Everything under
   it keeps its own narrower width, so only the heading gets the room. */
.hero-copy {
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

.hero-sub,
.hero-form {
  margin-inline: auto;
}

.hero-copy .signup {
  justify-content: center;
}

/* The heading reads as two lines. Below the breakpoint there is no room for
   that, so the break disappears and the text wraps on its own. */
.wide-only {
  display: none;
}

@media (min-width: 900px) {
  .wide-only {
    display: inline;
  }}

/* Founder line: a face and two sentences, not a byline. Left-aligned inside
   the centred hero on purpose — a portrait above centred text reads as a
   testimonial, beside it as the person who built the thing. */
.hero-sig {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin: 36px auto 0;
  text-align: left;
}

.hero-sig img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-sig p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.6);
}

.hero-sig strong {
  color: rgb(255 255 255 / 0.92);
  font-weight: 600;
}

/* --------------------------------------------------------- the problem */

/* Six tiles the visitor recognises. Deliberately plain: each one is a
   sentence, not a feature, so nothing here should look like a benefit. */
.pain-grid {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.pain-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

/* The turn. A tinted band so the page visibly changes register here — this
   is the sentence the whole first half exists to earn. */
.section--turn {
  background: var(--brand-soft);
  border-block: 1px solid var(--brand-line);
}

.turn-line {
  margin-top: 26px;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

/* ------------------------------------------------- the product's output */

/* The queue, rebuilt in markup rather than pasted in as a screenshot: it
   stays sharp at any zoom, search engines can read the finding, and it does
   not go stale the day a button moves in the app. */
.queue {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.queue-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.queue-hd strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 620;
}

.queue-hd span {
  font-size: 0.85rem;
  color: var(--muted);
}

.finding {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--alert);
}

.finding:last-child {
  border-bottom: 0;
}

.finding-hd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.finding-hd h3 {
  font-size: 1.02rem;
  font-weight: 620;
  line-height: 1.35;
}

.tag {
  flex: none;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.tag--urgent {
  background: var(--alert-soft);
  color: var(--alert);
}

/* Label above value, because the three parts of a finding are a contract:
   what happened, what to do, where to check. Reading order matters more
   than compactness here. */
.finding-body {
  margin: 18px 0 0;
  display: grid;
  gap: 4px 0;
}

.finding-body dt {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.finding-body dd {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.finding-body dd:last-child {
  margin-bottom: 0;
}

/* The second finding stays folded: two open findings would make the block
   a wall of text, and one closed row proves the queue holds more. */
.finding-teaser {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* The briefing quote, inside the existing .mail shell. */
.mail blockquote {
  margin: 0;
  padding: 24px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.after-demo {
  margin-top: 34px;
}

/* ------------------------------------------------------------ coverage */

/* Twelve areas, each answering a question rather than naming a vendor. */
.areas {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.areas li {
  background: var(--surface);
  padding: 18px 20px;
}

.areas strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}

.areas span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* --------------------------------------------------------- who it's for */

.cases {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.cases article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.cases h3 {
  line-height: 1.35;
}

.cases p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* A quiet line under a block, for the honest caveats: who this is not for,
   what is still being built. Muted on purpose — it must be findable, not
   loud. */
.note {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ------------------------------------------------------ founder & pilot */

.founder {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;
  align-items: start;
  margin-top: 34px;
}

/* The founder photograph. Square, because the block puts it beside the text
   at every width the two-column layout survives. */
.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
}

@media (max-width: 760px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .founder-photo {
    width: 140px;
    aspect-ratio: 1;
  }}

/* ---------------------------------------------------------- look inside */

/* Four screens side by side. The frames are placeholders until the product
   screenshots are taken — they carry the screen name and the app's own
   proportions, so the block reads as a deliberate diagram rather than as
   four images that failed to load. Swapping in an <img> later needs no
   change here beyond the element itself. */
.shots {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.shots figure {
  margin: 0;
}

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shots figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* The briefing card is a <figure>, so the browser gives it 40 px of horizontal
   margin by default. On a 390 px screen that left the quote 212 px wide — the
   most important evidence on the page reading as a narrow column. Scoped to
   this card, not a blanket figure reset: .shots figure needs its own spacing. */
.mail {
  margin-inline: 0;
}

/* Keeps "e-shopu" whole: the browser breaks after a hyphen by default, which
   split the word across two lines in the heading. */
.nowrap {
  white-space: nowrap;
}
