/*
 * Transport-Shaman.com: wygląd strony.
 * Ten sam charakter co wtyczka: kanciasto, bez zaokrągleń i gradientów, kolor marki #17448c (ciemniejszy #113670).
 * Przyciski wtyczki pokazane na stronie rysuje plugin.css, czyli kopia src/content.css z wtyczki.
 */

:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #17233a;
  --muted: #5d6b82;
  --line: #dde3ec;
  --link: #113670;
  --accent-ink: #17448c;
  --accent-soft: #e9f0fa;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161f;
    --card: #19212d;
    --text: #e7ecf4;
    --muted: #9aa7ba;
    --line: #2b3646;
    --link: #86bbf7;
    --accent-ink: #86bbf7;
    --accent-soft: #1d2c42;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.wrap,
.top-inner {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

/* Pas w kolorze marki z nazwą Transport-Shaman.com: taki sam jak na stronie ustawień wtyczki. */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #ffffff;
  background: #17448c;
  border-bottom: 4px solid #113670;
}

.top-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: 21px;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
}

/* biała ramka, żeby niebieski znak nie zlewał się z niebieskim pasem */
.logo {
  display: block;
  flex: none;
  outline: 2px solid #ffffff;
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tld {
  font-weight: 400;
  opacity: 0.75;
}

.btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-invert {
  color: #17448c;
  background: #ffffff;
  border-color: #ffffff;
}

.btn-invert:hover {
  color: #113670;
  background: #e9f0fa;
  border-color: #e9f0fa;
}

/* Lista języków */

.lang {
  position: relative;
  flex: none;
}

.lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

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

.lang summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.lang summary:hover,
.lang[open] summary {
  background: #113670;
}

.lang-code {
  display: none;
  text-transform: uppercase;
}

.lang ul {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 460px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 rgba(17, 54, 112, 0.3);
}

.lang li a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.lang li a:hover {
  background: var(--accent-soft);
}

.lang li a[aria-current] {
  font-weight: 700;
  color: #ffffff;
  background: #17448c;
}

/* Początek strony: jeden blok w kolorze marki */

.hero {
  color: #ffffff;
  background: #17448c;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 64px;
  align-items: center;
  padding: 72px 0 84px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 18px;
  opacity: 0.9;
}

.stores-label {
  margin: 36px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 10px 16px;
  color: #17448c;
  text-decoration: none;
  background: #ffffff;
  border: 2px solid #ffffff;
}

.store-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.store-note {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

a.store:hover {
  color: #113670;
  background: #e9f0fa;
  border-color: #e9f0fa;
}

/* sklep, w którym wtyczki jeszcze nie ma */
.store.is-soon {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

/* Prawdziwe przyciski wtyczki, pokazane na białej karcie */

.specimen {
  color: #17233a;
  background: #ffffff;
  box-shadow: 12px 12px 0 #113670;
}

.specimen-row {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-top: 1px solid #dde3ec;
}

.specimen-row:first-child {
  border-top: 0;
}

.specimen-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b7a90;
  text-transform: uppercase;
}

.specimen .tp-bar,
.screen .tp-bar {
  padding: 0;
  zoom: 1.25;
}

/* przyciski na pokaz niczego nie otwierają, więc nie udają klikalnych */
.specimen .tp-bar span.tp-btn,
.screen .tp-bar span.tp-btn {
  cursor: default;
}

/* Funkcje: numer, tytuł i opis po lewej, ekran po prawej */

.feature {
  border-top: 1px solid var(--line);
}

.feature:nth-of-type(even) {
  background: var(--card);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
  padding: 76px 0;
}

.feature-no {
  margin: 0 0 16px;
  font: 800 15px/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}

.feature-no::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 12px;
  background: currentColor;
}

.feature h2,
.free h2,
.install h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.feature-lead {
  max-width: 46ch;
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--muted);
}

/* Ekran: film albo, dopóki filmu nie ma, scena zbudowana z prawdziwych przycisków. Zawsze jasny, jak giełdy. */

.screen {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 36px 0;
  overflow: hidden;
  color: #17233a;
  background: #eef2f8;
  border: 1px solid #c5cedb;
  box-shadow: 12px 12px 0 #17448c;
}

.screen--video {
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 0;
  background: #ffffff;
}

.screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo {
  width: 86%;
  padding: 18px 20px;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #dde3ec;
}

/* scena: oferta z zakładkami wyszukiwania */

.demo-tabs {
  display: flex;
  gap: 4px;
  margin: -18px -20px 16px;
  padding: 8px 8px 0;
  overflow: hidden;
  background: #f3f5f9;
  border-bottom: 1px solid #dde3ec;
}

.demo-tab {
  flex: none;
  margin-bottom: -1px;
  padding: 7px 12px;
  font-size: 12px;
  color: #5d6b82;
  white-space: nowrap;
  border: 1px solid transparent;
}

.demo-tab.is-active {
  font-weight: 700;
  color: #17233a;
  background: #ffffff;
  border-color: #dde3ec #dde3ec #ffffff;
}

.demo-place {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
}

.demo-dot {
  flex: none;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #17448c;
}

.demo-dot--end {
  background: #17448c;
}

.demo-offer .tp-bar {
  margin-top: 12px;
}

/* scena: czat */

.demo-bubble {
  display: grid;
  gap: 7px;
  width: 62%;
  padding: 12px;
  background: #f3f5f9;
}

.demo-line {
  height: 9px;
  background: #d7deea;
}

.demo-line--short {
  width: 55%;
}

.demo-composer {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 11px 11px;
  border: 1px solid #c5cedb;
}

.demo-input {
  min-height: 21px;
  font-size: 13px;
}

.demo-caret {
  display: inline-block;
  width: 1px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #17233a;
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-caret {
    animation: none;
  }
}

/* scena: profil firmy */

.demo-company {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.demo-logo {
  width: 46px;
  height: 46px;
  background: #d7deea;
}

.demo-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.demo-tax {
  font-size: 12px;
  color: #5d6b82;
}

.demo-company .tp-bar {
  grid-column: 1 / -1;
}

/* scena: strona ustawień */

.demo-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.demo-field {
  padding: 7px 9px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #c5cedb;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.demo-btn {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #c5cedb;
}

.demo-btn--primary {
  color: #ffffff;
  background: #17448c;
  border-color: #17448c;
}

/* Za darmo i prywatnie */

.free {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.free-box {
  padding: 36px 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid #17448c;
}

.free-box p {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.free-box a {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
}

/* Instalacja */

.install {
  padding: 64px 0 76px;
  color: #ffffff;
  background: #113670;
}

.install .stores {
  margin-top: 24px;
}

/* Stopka */

.foot {
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  justify-content: space-between;
}

.foot p {
  max-width: 60ch;
  margin: 0 0 6px;
}

.foot-name {
  font-weight: 800;
  color: var(--text);
}

/* Polityka prywatności i strona błędu */

.doc {
  width: min(760px, 100% - 40px);
  margin: 0 auto;
  padding: 44px 0 80px;
}

.doc h1 {
  margin: 36px 0 0;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
}

.doc h2 {
  margin: 32px 0 0;
  font-size: 19px;
}

.doc p,
.doc ul {
  margin: 12px 0 0;
}

.doc li {
  margin-top: 6px;
}

.doc hr {
  height: 4px;
  margin: 56px 0 0;
  background: #17448c;
  border: 0;
}

.doc-nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.missing {
  padding: 96px 0 120px;
}

.missing h1 {
  margin: 0;
  font: 800 72px/1 ui-monospace, Consolas, monospace;
  color: var(--accent-ink);
}

@media (max-width: 860px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-grid {
    padding: 48px 0 60px;
  }

  .feature-grid {
    padding: 52px 0 60px;
  }

  .free,
  .install {
    padding: 52px 0 60px;
  }

  .free-box {
    padding: 26px 24px;
  }

  .screen {
    min-height: 0;
    padding: 28px 0;
  }

  .screen--video {
    padding: 0;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 17px;
  }

  .top .btn {
    display: none;
  }

  /* na wąskim ekranie lista języków rozciąga się na całą szerokość pasa */
  .lang {
    position: static;
  }

  .lang ul {
    top: 100%;
    right: 0;
    left: 0;
    width: auto;
  }

  .lang-name {
    display: none;
  }

  .lang-code {
    display: inline;
  }

  .specimen,
  .screen {
    box-shadow: 8px 8px 0 #113670;
  }

  .specimen .tp-bar,
  .screen .tp-bar {
    zoom: 1;
  }

  .demo {
    width: 92%;
    padding: 14px;
  }

  .demo-tabs {
    margin: -14px -14px 14px;
  }
}

@media (max-width: 420px) {
  .lang ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
