/*
 * OhLook 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 #3d8fd6 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: #65788a;
  --line: #dfe8f0;
  --surface: #ffffff;
  --page: #f3f7fb;

  --brand: #3d8fd6;
  --brand-dark: #2f6ea5;
  --brand-soft: #e3effa;
  --brand-line: #bedaf1;

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

  --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--tight {
  padding: 64px 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,
.split h2 + .lead {
  margin-top: 20px;
}

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

.subhead {
  font-size: 1.25rem;
}

.note {
  margin-top: 34px;
  text-align: center;
  font-size: 1rem;
}

/* ---------------------------------------------------------------- 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: the letters are
   live text and only the "oo" is drawn. Sizing is in em so the eyes track the
   font size; the rims inherit currentColor (white on the dark header) and the
   pupils stay brand blue. */
.wordmark {
  display: flex;
  align-items: baseline;
  /* Bigger than the surrounding nav on purpose: below roughly 22px the eyes
     stop reading as eyes and turn into two plain o's with dots. */
  font-size: 1.4rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.wordmark svg {
  width: 1.246em;
  height: 0.58em;
  margin: 0 0.02em;
}

.wordmark .pupil {
  fill: var(--brand);
}

.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;
}

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

/* ------------------------------------------------------------------ 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(61 143 214 / 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;
}

/* Two columns from 980px up: the pitch on the left, a sample of what the
   product actually says on the right. Below that the card would push the
   e-mail field under the fold, so it is dropped rather than stacked. */
.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* The card stays on a phone. Hiding it left the whole first screen as text
   with nothing to look at, which is worse than the extra height. */

/* The finding card. Glass over the dark hero rather than a white panel: a
   white card here would read as a screenshot pasted onto the page. */
.hero-card {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.35);
}

.hero-card-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.hero-card-hd strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.hero-card-hd span {
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.45);
}

.hero-find {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.hero-find:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.hero-find i {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-find i.warm {
  background: #e2a94e;
}

.hero-find i.cool {
  background: var(--accent-light);
}

.hero-find strong {
  display: block;
  color: rgb(255 255 255 / 0.94);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-find span {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.5);
  line-height: 1.5;
}

.hero-card-ft {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.4);
}

.hero h1 {
  color: #fff;
  max-width: 15ch;
}

.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;
}

.hero-trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.62);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--brand);
}

/* --------------------------------------------------------------- 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);
}

.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: #9aabbb;
}

.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: #7fd4a6;
}

.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;
}

/* ----------------------------------------------------------- proof band */

/* Sits immediately under the hero: the four things that make the promise
   credible, before any feature copy. */
.proof {
  background: var(--page);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.proof ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  font-size: 0.92rem;
  color: var(--muted);
}

.proof li {
  display: inline-flex;
  align-items: center;
  gap: 26px;
}

/* Separator between items, not after the last one. */
.proof li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-line);
}

.proof a {
  color: var(--brand-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-line);
}

@media (max-width: 640px) {
  .proof li:not(:last-child)::after {
    display: none;
  }

  .proof ul {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

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

.faq {
  margin-top: 34px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 18px 34px 18px 0;
  position: relative;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Chevron drawn in CSS so the page keeps its zero-asset rule. */
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

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

.chips {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.chips li span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.turn {
  margin-top: 40px;
  text-align: center;
}

.turn strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.turn p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--ink);
}

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

.steps {
  margin-top: 44px;
  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;
}

/* ----------------------------------------------------------------- cards */

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

/* Cards that open a section on their own, with no heading above them. */
.cards--flush {
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 18px;
}

.card .icon--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

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

/* -------------------------------------------------------------- sections */

.areas-block {
  margin-top: 52px;
  text-align: center;
}

.areas {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.areas--center {
  justify-content: center;
}

.areas li {
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.92rem;
  font-weight: 560;
}

.sources {
  margin: 26px 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}

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

/* ------------------------------------------------------------- highlight */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

.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;
}

.mail-bd {
  padding: 22px;
}

.mail-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mail-kpi div {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
}

.mail-kpi span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.mail-kpi b {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.mail-kpi em {
  font-style: normal;
  font-size: 0.75rem;
  color: #1a7a4a;
}

.mail-kpi em.down {
  color: #b3352b;
}

/* Three tiles stay three on a phone — a stacked column of single numbers
   loses the at-a-glance comparison the row exists for. The labels shrink
   instead. */
@media (max-width: 560px) {
  .mail-kpi {
    gap: 6px;
  }

  .mail-kpi div {
    padding: 9px 10px;
  }

  .mail-kpi span {
    font-size: 0.66rem;
  }

  .mail-kpi b {
    font-size: 0.95rem;
  }
}

.mail-item {
  border-left: 3px solid var(--brand);
  padding: 2px 0 2px 14px;
  margin-bottom: 16px;
}

.mail-item:last-child {
  margin-bottom: 0;
}

.mail-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 620;
}

.mail-item p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* "Minule doporučeno…" — the follow-up line that makes the briefing a thread
   rather than a fresh report each week. */
.mail-item em {
  color: var(--ink-soft);
  font-style: italic;
}

.mail-item--accent {
  border-left-color: var(--accent);
}

.caption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ----------------------------------------------------------------- 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;
}
