/*
  TaxiBrain public web premium layer.
  Vizuální polish nad statickým exportem. Bez napojení na provozní API mimo existující lead formulář.
*/

:root {
  --tb-web-bg: #07111f;
  --tb-web-ink: #07111f;
  --tb-web-muted: #637083;
  --tb-web-cyan: #2fd3ee;
  --tb-web-blue: #1b7ff2;
  --tb-web-gold: #ffd84d;
  --tb-web-green: #34d399;
  --tb-web-red: #fb7185;
  --tb-web-card: rgba(255, 255, 255, 0.88);
  --tb-web-line: rgba(13, 35, 58, 0.12);
  --tb-web-radius: 28px;
}

html {
  scroll-behavior: auto !important;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 211, 238, 0.15), transparent 28%),
    radial-gradient(circle at 90% 6%, rgba(255, 216, 77, 0.12), transparent 26%),
    #eef5fb;
}

main {
  isolation: isolate;
}

section[id] {
  scroll-margin-top: 104px;
}

.site-header {
  top: 12px !important;
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 18px 50px rgba(15, 35, 60, 0.14);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(47, 211, 238, 0.16), transparent 42%, rgba(255, 216, 77, 0.18));
}

.nav-shell {
  min-height: 72px;
}

.brand-avatar,
.brand-avatar img {
  border-radius: 17px;
}

.brand-avatar {
  box-shadow: 0 14px 30px rgba(15, 35, 60, 0.16);
}

.main-nav a,
.login-link,
.button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.main-nav a:hover,
.login-link:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(130px, 13vw, 178px) !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 211, 238, 0.24), transparent 33%),
    radial-gradient(circle at 92% 20%, rgba(255, 216, 77, 0.2), transparent 30%),
    linear-gradient(145deg, #07111f 0%, #0d2340 50%, #07111f 100%) !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(238, 245, 251, 0.96));
}

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

.hero-copy h1 {
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 680px;
  text-wrap: pretty;
}

.hero-actions {
  align-items: center;
}

.hero-actions .button:first-child,
.calculator-cta,
.form-submit {
  color: #06111f !important;
  background:
    linear-gradient(135deg, var(--tb-web-gold), #fff1a8 48%, var(--tb-web-cyan)) !important;
  box-shadow: 0 22px 44px rgba(255, 216, 77, 0.24);
}

.hero-proof {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-promo-card,
.owner-window,
.calculator-card,
.price-card,
.lead-form,
.comparison-column,
.capability,
.faq-list details {
  border: 1px solid var(--tb-web-line);
  border-radius: var(--tb-web-radius);
  box-shadow:
    0 22px 60px rgba(12, 28, 50, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-promo-card {
  overflow: hidden;
  transform: rotate(0deg) !important;
}

.hero-promo-card img,
.owner-window img {
  display: block;
  width: 100%;
}

.hero-visual-link {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 32, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.entrepreneur-slogan-inner,
.owner-protection-inner,
.mid-cta-layout,
.risk-grid {
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(10, 31, 54, 0.12);
}

.sales-calculator,
.before-after,
.origin,
.founder-story,
.flow,
.faq-section {
  position: relative;
  overflow: clip;
}

.sales-calculator::before,
.origin::before,
.faq-section::before {
  content: "";
  position: absolute;
  inset: 8% auto auto -140px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(47, 211, 238, 0.16), transparent 68%);
}

.calculator-result {
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 211, 238, 0.2), transparent 36%),
    linear-gradient(145deg, #07111f, #0d2340);
}

.founder-story {
  padding: clamp(78px, 9vw, 132px) 0;
  background:
    radial-gradient(circle at 14% 14%, rgba(47, 211, 238, 0.16), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(255, 216, 77, 0.16), transparent 28%),
    linear-gradient(145deg, #f6fbff, #eaf3fb);
}

.founder-story::before {
  content: "";
  position: absolute;
  inset: 14% -180px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(27, 127, 242, 0.12), transparent 68%);
}

.founder-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.founder-story-media {
  position: relative;
}

.founder-photo-main,
.founder-photo-secondary,
.founder-story-card {
  border: 1px solid rgba(13, 35, 58, 0.12);
  box-shadow:
    0 28px 70px rgba(12, 28, 50, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.founder-photo-main {
  display: block;
  width: min(100%, 520px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 34px;
}

.founder-photo-secondary {
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: min(44%, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  transform: rotate(4deg);
}

.founder-story-badge {
  position: absolute;
  left: 22px;
  bottom: 24px;
  display: grid;
  gap: 2px;
  max-width: 260px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  color: #f8fbff;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.founder-story-badge strong {
  font-size: 15px;
}

.founder-story-badge span {
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.founder-story-copy {
  position: relative;
  z-index: 1;
}

.founder-story-copy h2 {
  max-width: 720px;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.founder-story-lead {
  max-width: 710px;
  color: #304157;
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 800;
  line-height: 1.55;
}

.founder-story-card {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.founder-story-card p {
  margin: 0;
  color: #4d5f74;
  font-weight: 700;
  line-height: 1.75;
}

.founder-story-quote {
  margin: 0;
  padding: 20px 22px;
  border-left: 5px solid var(--tb-web-gold);
  border-radius: 20px;
  color: #07111f;
  background: linear-gradient(135deg, rgba(255, 216, 77, 0.22), rgba(47, 211, 238, 0.12));
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 950;
  line-height: 1.45;
}

.founder-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.founder-story-actions .button-ghost {
  border-color: rgba(7, 17, 31, 0.14) !important;
  color: #07111f !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.founder-story-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.founder-story-proof span {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(13, 35, 58, 0.1);
  border-radius: 18px;
  color: #23354a;
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 900;
}

.owner-protection {
  background:
    linear-gradient(135deg, #07111f, #112b4a) !important;
}

.protection-mark {
  box-shadow: 0 0 0 10px rgba(255, 216, 77, 0.11), 0 24px 60px rgba(0, 0, 0, 0.24);
}

.product {
  background:
    radial-gradient(circle at 20% 12%, rgba(47, 211, 238, 0.17), transparent 30%),
    linear-gradient(145deg, #07111f, #0b1b31 62%, #07111f) !important;
}

.product-tabs {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px;
}

.product-tabs button {
  border-radius: 17px !important;
}

.owner-showcase {
  align-items: stretch;
}

.showcase-copy {
  border-radius: var(--tb-web-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.steps li {
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66));
  box-shadow: 0 18px 42px rgba(15, 35, 60, 0.1);
}

.price-card {
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "Start provozu";
  position: absolute;
  top: 22px;
  right: -52px;
  padding: 9px 58px;
  transform: rotate(32deg);
  color: #06111f;
  background: var(--tb-web-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact {
  overflow: clip;
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 211, 238, 0.2), transparent 34%),
    linear-gradient(145deg, #07111f, #0d2340) !important;
}

.lead-form input,
.lead-form textarea {
  border-radius: 16px !important;
}

.mobile-sales-cta {
  box-shadow: 0 18px 44px rgba(27, 127, 242, 0.28);
}

@supports selector(body:has(.menu-toggle)) {
  body:has(.menu-toggle[aria-expanded="true"]) {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body:has(.menu-toggle[aria-expanded="true"]) .site-header {
    z-index: 5000;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 86px;
  }

  section[id] {
    scroll-margin-top: 90px;
  }

  .site-header {
    top: 8px !important;
    width: calc(100% - 18px);
    border-radius: 21px;
  }

  .nav-shell {
    min-height: 64px;
  }

  .main-nav {
    position: fixed !important;
    top: 84px;
    left: 12px;
    right: 12px;
    z-index: 4990;
    max-height: min(70dvh, 520px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 28px 80px rgba(8, 24, 44, 0.24);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .main-nav a {
    display: flex !important;
    align-items: center;
    min-height: 48px;
    padding: 0 16px !important;
    border: 1px solid rgba(13, 35, 58, 0.12) !important;
    border-radius: 16px;
    color: #07111f !important;
    background: rgba(255, 255, 255, 0.72) !important;
  }

  body:has(.menu-toggle[aria-expanded="true"]) .main-nav,
  body.menu-open .main-nav,
  .main-nav.is-open {
    border-color: rgba(255, 255, 255, 0.22) !important;
    background: rgba(7, 17, 31, 0.96) !important;
    box-shadow: 0 30px 90px rgba(2, 8, 18, 0.44) !important;
  }

  body:has(.menu-toggle[aria-expanded="true"]) .main-nav a,
  body.menu-open .main-nav a,
  .main-nav.is-open a {
    border-color: rgba(255, 255, 255, 0.13) !important;
    color: #f8fbff !important;
    background: rgba(255, 255, 255, 0.09) !important;
  }

  body:has(.menu-toggle[aria-expanded="true"]) .main-nav a:hover,
  body.menu-open .main-nav a:hover,
  .main-nav.is-open a:hover {
    color: #07111f !important;
    background: linear-gradient(135deg, var(--tb-web-gold), #fff0a3) !important;
  }

  .founder-story-grid {
    grid-template-columns: 1fr;
  }

  .founder-photo-main {
    width: 100%;
    max-height: 640px;
  }

  .founder-photo-secondary {
    right: 16px;
    bottom: -18px;
  }

  .founder-story-proof {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 112px !important;
  }

  .hero-copy h1 {
    letter-spacing: -0.055em;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-proof,
  .rail-grid,
  .comparison-grid,
  .risk-grid {
    gap: 12px;
  }

  .price-card::before {
    right: -62px;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 6px !important;
  }

  .hero {
    padding-bottom: 60px !important;
  }

  .calculator-card,
  .price-card,
  .lead-form,
  .comparison-column,
  .capability,
  .faq-list details,
  .founder-photo-main,
  .founder-story-card {
    border-radius: 22px;
  }

  .founder-photo-secondary {
    width: 38%;
    border-width: 6px;
    border-radius: 18px;
  }

  .founder-story-badge {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 14px;
    max-width: none;
  }

  .founder-story-actions .button {
    width: 100%;
    justify-content: center;
  }

  .mobile-sales-cta {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
}
