/* A restrained refinement of the original CarSpot identity.
   Shared by the landing page, features, releases and legal pages. */
:root {
  --bg: #0b0f1a;
  --card: #111a29;
  --text: #edf2fa;
  --muted: #a6b2c4;
  --brand: #6aa6ff;
  --brand-2: #82ffd2;
  --site-max-width: 1160px;
  --site-logo-size: 60px;
  --site-logo-text-size: 28px;
  --site-logo-gap: 12px;
  --logo-size: 60px;
  --brand-name-size: 28px;
  --logo-gap: 12px;
}
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
html, body { height: auto; min-height: 100%; overflow: visible; }
body { line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before {
  inset: 0;
  background:
    radial-gradient(ellipse 720px 650px at 88% 22%, #82ffd20b, transparent 75%),
    radial-gradient(ellipse 850px 650px at 14% 0%, #6aa6ff13, transparent 75%),
    linear-gradient(160deg, #0d1421, #0b0f1a 65%);
  transform: none;
  will-change: auto;
}
body::after { display: none; }
/* Original deep blue, with a broader white gradient behind the app. */
.home-page::before, .release-page::before, .legal-document::before {
  position: absolute;
  background:
    radial-gradient(ellipse 70% 440px at 100% 460px, #ffffff 0%, #f2f6fc 25%, #b5c7df 42%, #6985aa70 58%, transparent 78%),
    radial-gradient(ellipse 850px 650px at 14% 0%, #6aa6ff13, transparent 75%),
    linear-gradient(160deg, #0d1421, #0b0f1a 65%);
}
.container {
  height: auto; min-height: 100svh; overflow: visible;
  max-width: 1160px; padding: calc(28px + var(--safe-top, 0px)) 32px 24px;
}
.container > header { padding: 0 0 26px; border-bottom: 1px solid #ffffff10; flex-wrap: nowrap; }
.home-page .container > header { border-bottom: 0; }
.logo--xl { --logo-size: 60px; --brand-name-size: 28px; --logo-gap: 12px; }
.logo, a.logo { gap: 12px; letter-spacing: -.9px; }
.logo-badge, .logo--xl .logo-badge {
  width: 60px; height: 60px; flex-basis: 60px; border-radius: 18px;
  background: linear-gradient(145deg, #20334f, #15243b);
  border: 1px solid #ffffff10; box-shadow: inset 0 1px 0 #ffffff09;
}
.logo-badge .logo-icon { width: 48px; height: 48px; object-fit: contain; }
.logo > span:last-child, a.logo > span:last-child { font-size: 28px; }
.header-links { display: flex; gap: 30px; align-items: center; justify-content: flex-end; margin-left: auto; font-size: 13px; font-weight: 500; color: var(--text); }
.header-links a { display: inline-flex; align-items: center; min-height: 44px; }
.header-links a:hover { color: var(--text); }
.header-links a[aria-current="page"] { color: var(--brand-2); }
.menu-toggle { margin-left: 10px; width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; box-shadow: none; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 10000; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 5px; }
.container > main > .home-hero {
  display: grid; grid-template-columns: 1.12fr .88fr;
  grid-template-areas: 'copy phone' 'download phone';
  column-gap: 64px; row-gap: 30px; align-content: center;
  min-height: 760px; padding: 64px 0 72px;
}
.home-hero .hero-copy { grid-area: copy; align-self: end; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #b7c7dc; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 14px #82ffd245; }
.container > main > .home-hero h1 { font-size: clamp(44px, 5.5vw, 70px); font-weight: 650; line-height: 1.07; letter-spacing: -.055em; text-shadow: none; }
.home-hero h1 .headline-accent { color: #92c6ec; background: linear-gradient(100deg, #8cbcff, #9ae6d2); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.home-hero .hero-emoji { display: inline-block; font-size: .736em; line-height: 1; vertical-align: baseline; letter-spacing: 0; margin-left: 6px; transform: translate(-3px, -3px); }
.container > main > .home-hero .hero-copy > p { max-width: 440px; margin: 26px 0 0; font-size: 17px; line-height: 1.8; }
.hero-intro { margin: 0; }
.home-hero .mock { grid-area: phone; position: relative; overflow: visible; width: min(100%, 308px); margin: 0 auto; border-radius: 0; }
.home-hero .mock::before { content: ''; position: absolute; inset: 10% -28%; z-index: -1; background: radial-gradient(ellipse, #6aa6ff1c, #82ffd209 45%, transparent 72%); filter: blur(20px); }
.home-hero .mock-img { width: 100%; height: auto; filter: drop-shadow(0 28px 32px #00000055); }
.home-download { grid-area: download; align-self: start; }
.download-label { display: block; margin-bottom: 14px; color: #d6dfeb; font-size: 13px; font-weight: 500; }
.home-download .badges { justify-content: flex-start; gap: 12px; margin: 0; flex-wrap: nowrap; width: min(340px, 100%); }
.home-download .store-badge { flex: 0 1 164px; min-height: 50px; border-radius: 10px; }
.home-download .store-badge img { width: 100%; max-width: 164px; }
.download-pointer {
  width: min(340px, 100%);
  margin-top: 8px;
  color: #c5d8ef;
  pointer-events: none;
}
.download-pointer svg { display: block; width: 100%; height: auto; overflow: visible; }
.download-pointer__curve, .download-pointer__tip {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.download-pointer__curve { opacity: .65; }
.download-pointer__text {
  fill: currentColor;
  font-family: "Segoe Print", "Segoe Script", "Bradley Hand", cursive;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .25px;
}
/* Compact contact strip with understated text links. */
.home-page #kontakt {
  margin: 20px 0 0;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  border-top: 1px solid #ffffff0c;
}
.home-page #kontakt h2 { margin: 0 0 4px; font-size: 18px; font-weight: 550; letter-spacing: -.3px; }
.home-page #kontakt p { margin: 0; color: var(--muted); font-size: 13px; }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #bccadd;
  font-size: 13px;
  transition: color .15s ease;
}
.contact-link svg { width: 16px; height: 16px; flex-shrink: 0; color: #91aac5; }
.contact-link span { text-decoration: underline; text-decoration-color: #bccadd30; text-underline-offset: 4px; }
.contact-link:hover, .contact-link:focus-visible { color: var(--brand-2); }
.contact-link:hover span, .contact-link:focus-visible span { text-decoration-color: currentColor; }
.social-link { border-color: #ffffff17; border-radius: 10px; padding: 12px 17px; }
.social-handle { color: #bccadd; }
footer { margin-top: 0; padding: 23px 0 8px; border-top: 1px solid #ffffff10; font-size: 12px; gap: 20px; }
.footer-legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
footer a:hover { color: var(--text); }
.footer-separator { opacity: .35; }
.container > main > .feature-hero h1 { text-shadow: none; letter-spacing: -.045em; }
.legal-page { width: 100%; max-width: 800px; margin: 52px 0 64px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.04em; }
.legal-page h2 { margin-top: 32px; font-size: 22px; letter-spacing: -.025em; }
.legal-page p, .legal-page li { color: #b9c4d4; }
.legal-page a { overflow-wrap: anywhere; }
.cookie-banner__inner { background: #111a29f5; border-color: #ffffff1c; border-radius: 16px; box-shadow: 0 16px 60px #00000055; }
.cookie-banner__text { font-size: 12px; line-height: 1.7; }
/* Let the card contain its full content. On exceptionally short screens the
   overlay can move as a whole, without a scroll area inside the card. */
body.store-modal-open { touch-action: auto; }
.store-modal { overflow-y: auto; align-items: safe center; overscroll-behavior: contain; }
.store-modal__backdrop {
  position: fixed;
  background: #081527b8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.store-modal__dialog {
  width: min(100%, 560px);
  max-height: none;
  flex-shrink: 0;
  padding: 32px clamp(22px, 5vw, 40px);
  background:
    radial-gradient(ellipse at 0% 0%, #548ce826, transparent 65%),
    radial-gradient(ellipse at 100% 100%, #5be0c31a, transparent 65%),
    linear-gradient(145deg, #15263d, #0b1423 65%, #15283a);
  border: 1px solid #b7c7dc26;
  border-radius: 24px;
  overflow: clip;
  box-shadow: 0 24px 64px #00000055, inset 0 1px 0 #ffffff08;
}
.store-modal__dialog::before {
  display: block;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: url('assets/background-contours.svg') center / 800px auto;
  opacity: .22;
  filter: none;
}
.store-modal__dialog::after { display: none; }
.store-modal__close {
  width: 44px;
  height: 44px;
  padding: 0;
  border-color: #ffffff17;
  border-radius: 12px;
  background: #ffffff05;
}
.store-modal__close:hover {
  transform: none;
  border-color: #92c6ec55;
  background: #92c6ec0c;
}
.store-modal__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.store-modal__logo-wrap {
  width: 68px;
  height: 68px;
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.store-modal__logo-wrap img { width: 100%; height: 100%; }
.store-modal__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #b7c7dc;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}
.store-modal__pwa-view .store-modal__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 14px #82ffd245;
}
.store-modal__view[data-store-modal-view="store"] .store-modal__eyebrow,
.store-modal__pwa-title {
  color: #92c6ec;
  background: linear-gradient(100deg, #8cbcff, #9ae6d2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(24px, 4.5vw, 30px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.04em;
  text-transform: none;
}
.store-modal__description,
.store-modal__pwa-description {
  color: #c5d2e3;
  font-size: 15px;
  line-height: 1.8;
}
.store-modal__thank-you { color: var(--text); font-size: .9em; }
.store-modal__divider { margin: 24px 0 18px; }
.store-modal__divider strong { color: #b7c7dc; font-weight: 600; letter-spacing: .16em; }
.store-modal__divider span { background: linear-gradient(90deg, transparent, #b7c7dc26); }
.store-modal__divider span:last-child { background: linear-gradient(90deg, #b7c7dc26, transparent); }
.store-modal__actions { width: min(100%, 180px); }
.store-modal__store-link,
button.store-modal__store-link,
.store-modal__store-link.is-selected {
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  box-shadow: none;
}
.store-modal__store-link:hover {
  transform: translateY(-2px);
  background: none;
  box-shadow: 0 10px 24px #00000026;
}
.store-modal__steps { gap: 10px; margin-top: 22px; }
.store-modal__step {
  padding: 12px 14px;
  border-color: #b7c7dc1f;
  border-radius: 12px;
  color: #d6dfeb;
  background: #0b142359;
  line-height: 1.6;
}
.store-modal__step-number {
  border: 1px solid #92c6ec33;
  border-radius: 10px;
  color: #9ae6d2;
  background: linear-gradient(135deg, #6aa6ff1a, #82ffd20c);
  box-shadow: none;
  font-weight: 600;
}
.store-modal__step-domain { color: #9ae6d2; font-weight: 600; }
.store-modal__share-icon { stroke: #9ae6d2; }
.store-modal__pwa-actions { margin-top: 22px; }
.store-modal__pwa-open {
  border: 1px solid #9ae6d233;
  border-radius: 10px;
  color: #0b1423;
  background: linear-gradient(100deg, #8cbcff, #9ae6d2);
  box-shadow: none;
  font-weight: 600;
}
.store-modal__close:focus-visible,
.store-modal__store-link:focus-visible,
.store-modal__pwa-open:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 5px;
}
@media (max-width: 560px) {
  .store-modal__dialog { padding: 28px 22px; }
  .store-modal__brand { margin-bottom: 20px; }
  .store-modal__logo-wrap { width: 60px; height: 60px; }
  .store-modal__description, .store-modal__pwa-description { font-size: 14px; line-height: 1.7; }
  .store-modal__step { padding: 10px 12px; font-size: 13px; }
}
@media (max-width: 560px) and (max-height: 680px) {
  .store-modal__dialog { padding: 24px 18px; }
  .store-modal__brand { margin-bottom: 14px; font-size: 22px; }
  .store-modal__logo-wrap { width: 48px; height: 48px; }
  .store-modal__description, .store-modal__pwa-description { line-height: 1.55; }
  .store-modal__steps, .store-modal__pwa-actions { margin-top: 14px; }
}
@media (min-width: 600px) and (max-height: 540px) {
  .store-modal__dialog { width: min(100%, 840px); padding: 16px 28px; }
  .store-modal__brand { margin-bottom: 8px; }
  .store-modal__logo-wrap { width: 36px; height: 36px; }
  .store-modal__description { margin-top: 8px; font-size: 14px; line-height: 1.45; max-width: 650px; }
  .store-modal__thank-you { margin-top: 8px; }
  .store-modal__divider { margin: 12px 0; }
  .store-modal__store-link { padding: 8px 12px; }
  .store-modal__pwa-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'eyebrow steps' 'title steps' 'description steps' 'action steps';
    column-gap: 24px;
    text-align: left;
  }
  .store-modal__pwa-view .store-modal__eyebrow { grid-area: eyebrow; margin: 0; }
  .store-modal__pwa-title { grid-area: title; font-size: 23px; margin-top: 4px; }
  .store-modal__pwa-description { grid-area: description; font-size: 13px; line-height: 1.4; margin-top: 8px; }
  .store-modal__steps { grid-area: steps; margin: 0; align-self: center; gap: 6px; }
  .store-modal__step { padding: 8px 10px; gap: 8px; font-size: 13px; }
  .store-modal__pwa-actions { grid-area: action; width: 100%; margin-top: 10px; }
  .store-modal__pwa-open { min-height: 40px; }
}
.legal-document .legal-page {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: linear-gradient(150deg, #17253bf5, #0e1625fa);
}
.legal-document .legal-page { max-width: 860px; }
.legal-document .legal-page h1 { margin-top: 0; overflow-wrap: anywhere; hyphens: auto; }
.release-section h2 { text-shadow: none; letter-spacing: -.04em; }
.release-current-version {
  background: #111a29;
  color: var(--brand-2);
  border-color: #82ffd259;
}
.release-card-inner, .release-card--current .release-card-inner {
  background: linear-gradient(150deg, #17253bf5, #0e1625fa);
  border-color: #ffffff20;
  box-shadow: 0 16px 40px #00000025;
}
.release-card--current .release-card-inner { border-color: #92c6ec66; }
.release-card--current .release-card-inner::before { background: #92c6ec18; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (max-width: 920px) {
  .container > main > .home-hero { column-gap: 30px; min-height: 660px; }
  .container > main > .home-hero h1 { font-size: 52px; }
  .home-hero .mock { max-width: 270px; }
  .header-links { gap: 18px; }
}
@media (max-width: 700px) {
  .home-page::before, .release-page::before, .legal-document::before {
    position: absolute;
    background:
      radial-gradient(ellipse 110% 330px at 105% 620px, #ffffff 0%, #f2f6fc 27%, #b5c7df 43%, #6985aa70 58%, transparent 78%),
      linear-gradient(160deg, #0d1421, #0b0f1a 65%);
  }
  .container { padding: calc(20px + var(--safe-top, 0px)) 24px 24px; }
  .container > header { padding-bottom: 20px; }
  .header-links { gap: 18px; font-size: 12px; }
  .logo-badge, .logo--xl .logo-badge { width: 50px; height: 50px; flex-basis: 50px; border-radius: 15px; }
  .logo-badge .logo-icon { width: 40px; height: 40px; }
  .logo > span:last-child, a.logo > span:last-child { font-size: 25px; }
  .container > main > .home-hero { grid-template-columns: 1fr; grid-template-areas: 'copy' 'phone' 'download'; gap: 36px; padding: 48px 0; min-height: 0; }
  .home-hero .hero-copy { text-align: center; margin: 0 auto; }
  .hero-eyebrow { justify-content: center; margin-bottom: 20px; font-size: 10px; }
  .container > main > .home-hero h1 { font-size: clamp(40px, 9.2vw, 60px); }
  .container > main > .home-hero .hero-copy > p { margin: 21px auto 0; font-size: 15px; max-width: 370px; }
  .home-hero .mock { width: min(68vw, 270px); }
  .home-download { text-align: center; }
  .download-pointer { margin-inline: auto; }
  .home-download .badges { justify-content: center; margin-inline: auto; }
  .home-page #kontakt { padding: 20px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact-links { gap: 0 20px; }
  .contact-link { min-height: 44px; font-size: 12px; }
  footer { font-size: 11px; }
  .footer-legal-links { gap: 9px; }
}
@media (max-width: 370px) {
  .container { padding-inline: 18px; }
  .container > header { gap: 12px; }
  .header-links { gap: 12px; }
  .logo, a.logo { gap: 8px; }
  .logo > span:last-child, a.logo > span:last-child { font-size: 22px; }
  .logo-badge, .logo--xl .logo-badge { width: 42px; height: 42px; flex-basis: 42px; }
  .logo-badge .logo-icon { width: 34px; height: 34px; }
  .home-download .store-badge { flex-basis: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
