/*
 * LegioPilot public site - homepage & landing-page hero components.
 * Used on top of assets/site.css by index.html and by the product landing
 * pages (dla-hoteli, pilotaz, baza-wiedzy) that share the same visual
 * language for their intro hero.
 */

.hero {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 15% 12%, rgba(22, 185, 129, 0.22), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(167, 243, 208, 0.12), transparent 45%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
}
.hero-inner { padding: 96px 0 90px; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero-inner.hero-inner-single { grid-template-columns: minmax(0, 760px); max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 14px;
  border: 1px solid rgba(167, 243, 208, 0.28);
  border-radius: 999px;
  background: rgba(22, 185, 129, 0.12);
  color: var(--lime);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 5px rgba(22, 185, 129, 0.2); }

.hero h1 { max-width: 640px; margin-bottom: 22px; font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.05em; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--emerald); }

.hero-copy { max-width: 560px; margin-bottom: 18px; font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: rgba(236, 253, 245, 0.82); }
.hero-copy:last-of-type { margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-status { max-width: 560px; margin: 0 0 30px; font-size: 0.9rem; color: rgba(236, 253, 245, 0.72); }

.hero-note { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.9rem; color: rgba(236, 253, 245, 0.74); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { content: "\2713"; color: var(--emerald); font-weight: 800; }

/* ---------- Dashboard mock (homepage hero only) ---------- */
.panel { position: relative; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.97); box-shadow: var(--shadow); }
.panel::before {
  content: "";
  position: absolute;
  inset: 16px -14px -16px 16px;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(22, 185, 129, 0.4), rgba(167, 243, 208, 0.15));
  filter: blur(2px);
}
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-title { font-weight: 800; color: var(--ink); }
.panel-top small { color: var(--muted); }
.sample-label { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 0.72rem; }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--mint); color: var(--emerald-dark); font-size: 0.75rem; font-weight: 800; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(22, 185, 129, 0.16); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.metric { padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.metric strong { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.metric span { font-size: 0.75rem; color: var(--muted); }

.task-list { display: grid; gap: 9px; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; }
.task-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); color: var(--emerald-dark); font-weight: 800; font-size: 0.82rem; }
.task strong { display: block; font-size: 0.9rem; color: var(--ink); }
.task small { color: var(--muted); }
.pill { padding: 5px 9px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: 0.72rem; font-weight: 800; }
.pill-alert { background: var(--danger); color: var(--danger-ink); }

/* ---------- Workflow steps ---------- */
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}
.step h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Hotel-first audience section ---------- */
.audience-primary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(140deg, var(--ink-soft), var(--panel));
  color: rgba(236, 253, 245, 0.82);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.audience-primary h3 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.audience-primary h4 { color: var(--white); font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.audience-primary p { margin: 0 0 20px; color: rgba(236, 253, 245, 0.7); }
.audience-primary-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.audience-primary-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.audience-primary-list li::before { content: "\2713"; color: var(--lime); font-weight: 900; }
.audience-primary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.audience-secondary-head { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.audience-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.audience-chip { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: 0.88rem; color: var(--muted); }
.audience-chip strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 0.96rem; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 68px 0 72px; gap: 44px; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .audience-primary { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .workflow { grid-template-columns: 1fr; }
  .audience-secondary { grid-template-columns: 1fr; }
  .audience-primary { padding: 26px 22px; }
}

/* Tighten the hero on phones so the primary CTA lands inside the first
   viewport: smaller badge/heading, less inter-element spacing, and less
   top/bottom breathing room around the hero content. */
@media (max-width: 640px) {
  .hero-inner { padding: 40px 0 48px; gap: 32px; }

  .eyebrow { margin-bottom: 14px; padding: 6px 12px; font-size: 0.78rem; }

  .hero h1 { margin-bottom: 14px; font-size: clamp(2.1rem, 8.6vw, 2.6rem); }

  .hero-copy { margin-bottom: 22px; }
  .hero-copy:last-of-type { margin-bottom: 22px; }

  .hero-actions { margin-bottom: 20px; }

  .hero-status { margin-bottom: 22px; }
}

/* Short-height phones (Safari with visible toolbars, landscape, older
   devices): trim vertical rhythm further so the CTA stays above the fold
   without touching layout that only depends on width. */
@media (max-height: 700px) {
  .hero-inner { padding-top: 24px; }
  .eyebrow { margin-bottom: 10px; }
  .hero h1 { margin-bottom: 10px; }
  .hero-copy:last-of-type { margin-bottom: 16px; }
}

/* Very short viewports (phones in landscape). Width alone can stay wide
   here, so the heading needs an explicit smaller size rather than relying
   on the width-based clamp above, and the sticky header is trimmed too
   since it otherwise claims a large share of the available height. */
@media (max-height: 500px) {
  :root { --header-h: 56px; }
  .hero-inner { padding: 16px 0 24px; }
  .eyebrow { margin-bottom: 8px; padding: 6px 12px; font-size: 0.78rem; }
  .hero h1 { margin-bottom: 8px; font-size: 2.1rem; }
  .hero-copy { margin-bottom: 14px; }
  .hero-copy:last-of-type { margin-bottom: 14px; }
  .hero-actions { margin-bottom: 14px; }
}
