/* app/static/lp.css
 *
 * Hand-written stylesheet for the server-rendered landing page (/) and
 * showcase page (/ukazka). Token-identical to frontend/src/index.css's
 * @theme block (04-UI-SPEC.md Design System) — zero new hex values here.
 * No build step: this file is served as-is via StaticFiles.
 */

:root {
  --color-brand-50: #f0f4ff;
  --color-brand-100: #dbe4ff;
  --color-brand-200: #bac8ff;
  --color-brand-300: #91a7ff;
  --color-brand-400: #748ffc;
  --color-brand-500: #5c7cfa;
  --color-brand-600: #4c6ef5;
  --color-brand-700: #4263eb;
  --color-brand-800: #3b5bdb;
  --color-brand-900: #364fc7;

  --color-surface: #ffffff;
  --color-surface-secondary: #f8f9fa;
  --color-surface-tertiary: #f1f3f5;
  --color-border: #e9ecef;
  --color-border-strong: #dee2e6;
  --color-text-primary: #212529;
  --color-text-secondary: #495057;
  --color-text-muted: #868e96;

  --color-success: #40c057;
  --color-warning: #fab005;
  --color-error: #fa5252;
}

/* --- Reset / base --- */

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-surface);
}

a {
  color: inherit;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--color-text-primary);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.nav__links a:hover {
  color: var(--color-brand-600);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 16px;
}

.nav__cta {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-brand-600);
  color: var(--color-brand-600);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.nav__cta:hover {
  background: var(--color-brand-50);
}

.nav__login {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.nav__login:hover {
  color: var(--color-brand-600);
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0;
}

.nav__toggle:hover {
  color: var(--color-brand-600);
}

.nav__mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  top: 65px;
  background: var(--color-surface);
  z-index: 49;
  padding: 24px;
}

.nav__mobile-panel.is-open {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav__mobile-panel a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .nav__links,
  .nav__actions {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* --- Hero --- */

.hero {
  background: var(--color-surface);
  padding: 48px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 96px 0;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-600);
  margin-bottom: 24px;
}

.hero__headline {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero__headline {
    font-size: 56px;
  }
}

.hero__subheadline {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero__cta {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  background: var(--color-brand-600);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.hero__cta:hover {
  background: var(--color-brand-700);
}

.hero__microcopy {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero__secondary-link {
  display: block;
  margin-top: 32px;
  color: var(--color-brand-600);
  text-decoration: none;
  font-weight: 400;
}

.hero__secondary-link:hover {
  text-decoration: underline;
}

/* --- Sections (generic) --- */

.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.section--tinted {
  background: var(--color-surface-secondary);
}

.section__heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 32px;
}

/* --- Jak to funguje --- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.step__heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.step__body {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0;
}

/* --- Showcase teaser --- */

.showcase-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.showcase-card__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.badge--pass {
  background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface));
  color: var(--color-success);
}

.badge--warn {
  background: color-mix(in srgb, var(--color-warning) 12%, var(--color-surface));
  color: var(--color-warning);
}

.badge--fail {
  background: color-mix(in srgb, var(--color-error) 12%, var(--color-surface));
  color: var(--color-error);
}

.showcase-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.showcase-card__perex {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
  max-height: 4.5em;
  overflow: hidden;
  position: relative;
}

.showcase-card__perex::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(to bottom, transparent, var(--color-surface));
}

.showcase-card__cta {
  display: inline-block;
  color: var(--color-brand-600);
  text-decoration: none;
  font-weight: 700;
}

.showcase-card__cta:hover {
  text-decoration: underline;
}

/* --- GEO argumenty --- */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat__number {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-brand-600);
  margin: 0 0 8px;
}

.stat__label {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0;
}

.geo-closing {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto;
}

/* --- Pricing --- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 32px;
  }
}

.pricing-card--recommended {
  border-color: var(--color-brand-600);
  border-width: 2px;
}

.pricing-card__badge {
  display: inline-block;
  background: var(--color-brand-50);
  color: var(--color-brand-600);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.pricing-card__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.pricing-card__price {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.pricing-card__tagline {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}

.pricing-card__cta {
  display: inline-block;
  width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-brand-600);
  color: var(--color-brand-600);
  text-decoration: none;
  font-weight: 700;
}

.pricing-card__cta:hover {
  background: var(--color-brand-50);
}

.pricing-anchor {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 16px;
}

.pricing-package,
.pricing-fullink {
  text-align: center;
  margin: 8px 0;
}

.pricing-fullink a {
  color: var(--color-brand-600);
  text-decoration: none;
  font-weight: 700;
}

.pricing-fullink a:hover {
  text-decoration: underline;
}

/* --- FAQ --- */

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
}

.faq summary {
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.faq summary::after {
  content: "+";
  color: var(--color-brand-600);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover::after {
  color: var(--color-brand-700);
}

.faq p {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- Footer --- */

.footer {
  background: var(--color-text-primary);
  color: #fff;
  padding: 48px 0;
}

.footer__tagline {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 16px;
}

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

.footer__attribution {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* --- Showcase article page (/ukazka) --- */

.score-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
}

.score-panel__ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 6px solid var(--color-brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}

/* --- Prose (copied verbatim from frontend/src/index.css for /ukazka article body) --- */

.prose {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.prose h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.35rem;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.prose p {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5em;
}

.prose li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  font-weight: 600;
}

/* --- /ukazka page layout --- */

.ukazka-header {
  text-align: center;
  padding: 48px 0 32px;
}

@media (min-width: 768px) {
  .ukazka-header {
    padding: 64px 0 40px;
  }
}

.ukazka-header__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-600);
  margin-bottom: 16px;
}

.ukazka-header__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 16px;
}

@media (min-width: 768px) {
  .ukazka-header__title {
    font-size: 40px;
  }
}

.ukazka-header__intro {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.ukazka-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0 64px;
}

@media (min-width: 1024px) {
  .ukazka-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.ukazka-article {
  min-width: 0;
}

.ukazka-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .ukazka-sidebar {
    position: sticky;
    top: 96px;
  }
}

/* --- Score panel (shared .score-panel base already defined above) --- */

.score-panel__heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
}

.score-panel__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.score-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}

.score-panel__row:first-of-type {
  border-top: none;
}

.score-panel__row-label {
  color: var(--color-text-secondary);
}

.score-panel__row-value {
  font-weight: 700;
}

.score-panel__row-value--pass {
  color: var(--color-success);
}

.score-panel__row-value--warn {
  color: var(--color-warning);
}

.score-panel__row-value--fail {
  color: var(--color-error);
}

/* --- Meta tags card --- */

.meta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
}

.meta-card__heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}

.meta-card__field {
  margin-bottom: 12px;
}

.meta-card__field:last-child {
  margin-bottom: 0;
}

.meta-card__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.meta-card__value {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--color-text-primary);
  background: var(--color-surface-secondary);
  border-radius: 6px;
  padding: 8px 10px;
  word-break: break-word;
}

/* --- Citations list --- */

.citations {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
}

.citations__heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}

.citations__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: citation;
}

.citations__list li {
  counter-increment: citation;
  font-size: 13px;
  margin-bottom: 8px;
  padding-left: 1.5em;
  position: relative;
}

.citations__list li::before {
  content: counter(citation) ".";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-weight: 700;
}

.citations__list a {
  color: var(--color-brand-600);
  text-decoration: none;
}

.citations__list a:hover {
  text-decoration: underline;
}

.citations__domain {
  color: var(--color-text-muted);
}

/* --- Ukazka CTA footer block --- */

.ukazka-cta {
  text-align: center;
  padding: 0 0 64px;
}

.ukazka-cta__button {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  background: var(--color-brand-600);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.ukazka-cta__button:hover {
  background: var(--color-brand-700);
}

/* --- Mini GEO check (/geo-check form + result, FUNL-02) ---
 * Zero new tokens: every color/spacing/font value below is a var(--...)
 * reference or a bare number already used elsewhere in this file (e.g.
 * .faq details' border/radius/padding, .ukazka-header's max-width, the
 * declared 40px/56px Display size). See 06-UI-SPEC.md Design System hard
 * rule.
 */

.geo-check-explain {
  max-width: 720px;
  margin: 0 auto 48px;
}

.geo-check-explain__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
  color: var(--color-brand-600);
}

.geo-check-explain__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.geo-check-explain__item p {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.geo-check-form-card {
  max-width: 480px;
  margin: 0 auto 64px;
}

.geo-check-form-card__field {
  margin-bottom: 16px;
  text-align: left;
}

.geo-check-form-card__field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.geo-check-form-card__field input {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 16px;
}

.geo-check-form-card__field input:focus {
  outline: none;
  border-color: var(--color-brand-600);
}

.geo-check-form-card__submit {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

/* --- Result page: score ring + checklist + CTAs --- */

.geo-check-score {
  text-align: center;
  margin: 0 auto 32px;
}

.geo-check-score__ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border-width: 8px;
  border-style: solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.geo-check-score__ring--pass {
  border-color: var(--color-success);
}

.geo-check-score__ring--partial {
  border-color: var(--color-warning);
}

.geo-check-score__ring--fail {
  border-color: var(--color-error);
}

.geo-check-score__number {
  font-size: 40px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .geo-check-score__number {
    font-size: 56px;
  }
}

.geo-check-score__suffix {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.geo-check-score__band {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.geo-check-score__band--pass {
  color: var(--color-success);
}

.geo-check-score__band--partial {
  color: var(--color-warning);
}

.geo-check-score__band--fail {
  color: var(--color-error);
}

.geo-check-checklist {
  max-width: 640px;
  margin: 0 auto 32px;
}

.geo-check-checklist__item {
  text-align: left;
  padding: 16px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.geo-check-checklist__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.geo-check-checklist__label {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  flex: 1 1 auto;
}

.geo-check-checklist__rec {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin: 4px 0 0 28px;
  flex-basis: 100%;
  line-height: 1.5;
}

.geo-check-cta-brandradar {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
  background: transparent;
}

.geo-check-cta-brandradar__heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.geo-check-cta-brandradar__subcopy {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}
