/*
 * Vizuální jazyk aplikace Reasonable Music. Barvy, zaoblení i rytmus pohybů
 * přebírá z app/lib/theme.dart a app/lib/screens/search_screen.dart,
 * aby stránka poznatelně patřila ke stejné aplikaci.
 */

/* ---------- tokeny ---------- */
:root {
  --cream: #fef5ea;
  --cream-deep: #fbf7f1;
  --ink: #453c52;
  --ink-soft: rgba(69, 60, 82, 0.65);
  --purple-ink: #584870;

  --teal: #4fb3ae;
  --purple: #bca0e3;
  --pink: #e0819e;
  --yellow: #f6dfa4;

  --teal-soft: #d9f0ee;
  --purple-soft: #eee7f9;
  --line: #e7e1db;

  --grad-teal: linear-gradient(135deg, #7fd3ce, #4fb3ae);
  --grad-pink: linear-gradient(135deg, #f7a8c0, #e0819e);
  --grad-purple: linear-gradient(135deg, #cdb6ee, #9b7bd4);
  --grad-yellow: linear-gradient(135deg, #f9e8be, #efc866);

  /* Material dlaždice má 16 px, tlačítka 18 px, velké desky 28 px */
  --r-card: 16px;
  --r-btn: 18px;
  --r-big: 28px;

  /* Aplikace animuje na 180–380 ms s easeOutBack, takže to cvakne zpět */
  --t-fast: 180ms;
  --t-mid: 250ms;
  --t-slow: 380ms;
  --back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-s: 0 2px 0 rgba(69, 60, 82, 0.06);
  --shadow-m: 0 18px 40px -22px rgba(69, 60, 82, 0.45);
  --shadow-l: 0 34px 70px -34px rgba(69, 60, 82, 0.5);

  --wrap: 1180px;
}

@font-face {
  font-family: "Baloo 2";
  src: url("assets/Baloo2-wght.ttf") format("truetype-variations");
  font-weight: 400 800;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Baloo 2", ui-rounded, "Segoe UI Rounded", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration-color: color-mix(in srgb, var(--teal) 45%, transparent);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  text-align: center;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--r-btn);
}

.skip:focus {
  left: 16px;
  top: 16px;
}

/* ---------- dekorativní pozadí ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.orb-teal {
  width: 46vw;
  height: 46vw;
  top: -12vw;
  right: -10vw;
  background: var(--teal-soft);
}

.orb-purple {
  width: 40vw;
  height: 40vw;
  top: 38vh;
  left: -14vw;
  background: var(--purple-soft);
}

.orb-pink {
  width: 34vw;
  height: 34vw;
  bottom: -8vw;
  right: 6vw;
  background: #fbe6ee;
}

/* ---------- navigace ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  border-radius: 22%;
  box-shadow: var(--shadow-s);
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--teal-soft);
}

/* ---------- přepínač jazyka ---------- */
/* Na mobilu .nav-links mizí, přepínač zůstává — bez něj by se návštěvník
   z cizí jazykové verze nedostal zpátky. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch a {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
}

.lang-switch a:hover {
  color: var(--ink);
  background: var(--teal-soft);
}

.lang-switch a[aria-current="true"] {
  color: #1f4b49;
  background: var(--teal-soft);
}

/* ---------- tlačítka ---------- */
.btn {
  --btn-face: var(--teal);
  --btn-ink: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  background: var(--btn-face);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-m);
  transition: transform var(--t-mid) var(--back), box-shadow var(--t-mid),
    filter var(--t-fast);
}

.btn:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.04);
  box-shadow: var(--shadow-l);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn .ic {
  width: 26px;
  height: 26px;
  flex: none;
}

.btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn b {
  font-weight: 700;
  font-size: 1.02rem;
}

.btn small {
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.82;
}

.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.btn-large {
  padding: 14px 26px;
}

.btn-teal {
  --btn-face: var(--grad-teal);
  --btn-ink: #1f4b49;
}

.btn-plum {
  --btn-face: linear-gradient(135deg, #cdb6ee, #8c6cc4);
  --btn-ink: #fff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}

.btn.is-recommended {
  position: relative;
}

.btn.is-recommended::after {
  content: "tenhle je pro tebe";
  position: absolute;
  top: -13px;
  right: -8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-s);
  animation: pop var(--t-slow) var(--back) both;
}

/* Nápis na stuze žije v CSS, ne v markupu — tlačítek se stuhou je na stránce
   šest a atribut by se musel přepisovat na každém. Další jazyk: připsat
   pravidlo pro jeho html[lang]. */
html[lang="en"] .btn.is-recommended::after {
  content: "this one's for you";
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

/* ---------- karty ---------- */
.card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-s);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 40px) 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--teal-soft);
  color: #2b5b58;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 33rem;
  margin: 20px 0 30px;
}

.detect {
  min-height: 1.6em;
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-ink);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  flex: none;
}

.facts b {
  color: var(--ink);
}

/* ---------- hero ilustrace ---------- */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.halo {
  position: absolute;
  width: min(78%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--purple-soft) 45%, var(--teal-soft) 100%);
  box-shadow: inset 0 0 0 1px rgba(231, 225, 219, 0.9);
}

.logo {
  position: relative;
  width: min(62%, 330px);
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}

.sparkle {
  position: absolute;
  width: 34px;
  animation: twinkle 3.4s ease-in-out infinite;
}

.sparkle-1 {
  top: 6%;
  left: 8%;
}

.sparkle-2 {
  top: 16%;
  right: 4%;
  width: 26px;
  animation-delay: 0.9s;
}

.sparkle-3 {
  bottom: 14%;
  left: 20%;
  width: 20px;
  animation-delay: 1.8s;
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(0.65) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.15) rotate(25deg);
    opacity: 1;
  }
}

.sprinkle {
  position: absolute;
  width: 22px;
  height: 8px;
  border-radius: 999px;
  opacity: 0.85;
}

.sprinkle-1 {
  top: 4%;
  right: 26%;
  background: var(--yellow);
  transform: rotate(-24deg);
}

.sprinkle-2 {
  bottom: 6%;
  right: 12%;
  background: var(--teal);
  transform: rotate(18deg);
}

.sprinkle-3 {
  bottom: 30%;
  left: 2%;
  background: var(--pink);
  transform: rotate(-8deg);
}

.mock {
  position: absolute;
  width: min(74%, 320px);
  padding: 14px 16px 16px;
  border-radius: 20px;
  box-shadow: var(--shadow-m);
}

.mock-search {
  bottom: -2%;
  left: -6%;
  transform: rotate(-3.5deg);
  z-index: 2;
}

.mock-job {
  top: 2%;
  right: -5%;
  width: min(58%, 250px);
  transform: rotate(4deg);
  z-index: 3;
}

.hero-art .mock {
  animation: sway 9s ease-in-out infinite;
}

.hero-art .mock-job {
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}

@keyframes sway {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.mock-cap {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.mock-foot {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
}

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

.cover {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: none;
}

.cover-pink {
  background: var(--grad-pink);
}

.cover-purple {
  background: var(--grad-purple);
}

.meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  flex: 1;
}

.meta b {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta i {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  flex: none;
}

.pill-teal {
  background: var(--grad-teal);
  color: #1f4b49;
}

.spinner {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--teal-soft);
  border-top-color: var(--teal);
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--p, 40%);
  border-radius: 999px;
  background: var(--grad-teal);
  animation: fill 2.6s var(--back) infinite;
}

@keyframes fill {
  0% {
    width: 8%;
  }
  70%,
  100% {
    width: var(--p, 68%);
  }
}

/* ---------- notová osnova ---------- */
.staff {
  position: relative;
  height: 120px;
  max-width: var(--wrap);
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.staff::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * 360px) 0 0;
  background: url("assets/staff-tile.svg") repeat-x center / 360px 120px;
  animation: staff-scroll 6s linear infinite;
}

@keyframes staff-scroll {
  to {
    transform: translateX(-360px);
  }
}

/* ---------- obecné sekce ---------- */
section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 40px);
}

.section-lede {
  text-align: center;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 14px auto 0;
}

/* ---------- funkce ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 22px;
  margin-top: 44px;
  /* 4 karty = 2×2, ne 3+1 */
  max-width: 820px;
  margin-inline: auto;
}

.feature {
  padding: 26px 24px 28px;
  border-radius: var(--r-big);
  transition: transform var(--t-mid) var(--back), box-shadow var(--t-mid),
    border-color var(--t-mid);
}

.feature:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  border-color: var(--purple);
  box-shadow: var(--shadow-m);
}

.feature h3 {
  margin: 18px 0 8px;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.glyph {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  box-shadow: var(--shadow-s);
}

.glyph svg {
  width: 27px;
  height: 27px;
}

.glyph-pink {
  background: var(--grad-pink);
}

.glyph-teal {
  background: var(--grad-teal);
  color: #1f4b49;
}

.glyph-purple {
  background: var(--grad-purple);
}

.glyph-yellow {
  background: var(--grad-yellow);
  color: #8a6a1f;
}

/* ---------- kroky ---------- */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 46px 0 0;
}

.step-list li {
  position: relative;
  text-align: center;
  padding: 30px 20px 26px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--r-big);
}

.step-num {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--grad-teal);
  color: var(--cream);
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 10px 22px -12px rgba(79, 179, 174, 0.9);
}

.step-list li:nth-child(2) .step-num {
  background: var(--grad-purple);
}

.step-list li:nth-child(3) .step-num {
  background: var(--grad-pink);
}

.step-list p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-top: 6px;
}

/* ---------- platformy ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px clamp(20px, 3vw, 32px) 32px;
  border-radius: var(--r-big);
}

.platform-android {
  border-top: 6px solid var(--teal);
}

.platform-mac {
  border-top: 6px solid var(--purple);
}

.platform header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.platform h3 {
  font-size: 1.55rem;
  font-weight: 800;
}

.platform-tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}

.tag-teal {
  background: var(--teal-soft);
  color: #2b5b58;
}

.tag-plum {
  background: var(--purple-soft);
  color: var(--purple-ink);
}

.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
}

.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  font-size: 0.94rem;
}

.specs li + li {
  border-top: 1px dashed var(--line);
}

.specs span {
  color: var(--ink-soft);
}

.specs b {
  text-align: right;
  font-weight: 700;
}

.install {
  margin: 0;
  padding-left: 26px;
  font-size: 0.96rem;
  display: grid;
  gap: 9px;
}

.install li {
  padding-left: 4px;
}

.install li::marker {
  font-weight: 800;
  color: var(--teal);
}

.platform-mac .install li::marker {
  color: var(--purple);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--purple-soft);
  color: var(--purple-ink);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-word;
}

.tip {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--teal-soft);
  border-radius: var(--r-card);
  padding: 14px 16px;
}

.tip-warn {
  background: #fdf1e3;
  border: 1px solid #f2ddc2;
  color: #6e5433;
}

.platform .btn {
  margin-top: auto;
  justify-content: flex-start;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}

details {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

details[open] {
  border-color: var(--teal);
}

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-weight: 700;
  cursor: pointer;
}

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

summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-right: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg);
  transition: transform var(--t-mid) var(--back);
}

details[open] summary::after {
  transform: rotate(-135deg);
}

details p {
  padding: 0 20px 20px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- závěrečné CTA ---------- */
.cta-close {
  padding-block: clamp(30px, 6vw, 60px);
}

.close-card {
  position: relative;
  text-align: center;
  padding: clamp(34px, 6vw, 60px) clamp(22px, 5vw, 54px);
  border-radius: 36px;
  border: none;
  background: linear-gradient(160deg, var(--purple-soft), var(--teal-soft) 65%, #fbe6ee);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}

.close-card img {
  border-radius: 22%;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-m);
  animation: bob 7s ease-in-out infinite;
}

.close-card p {
  color: var(--purple-ink);
  max-width: 34rem;
  margin: 12px auto 28px;
}

.close-card .cta-row {
  justify-content: center;
}

/* ---------- patička ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
  padding: clamp(30px, 5vw, 52px) clamp(20px, 5vw, 40px) 44px;
  display: grid;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-brand img {
  border-radius: 22%;
}

.foot-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.foot-brand span {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.foot-note,
.foot-legal {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 62rem;
}

.foot-legal {
  font-size: 0.82rem;
}

/* ---------- odhalování při scrollu ---------- */
/* Počáteční skrytý stav jen s JavaScriptem — bez něj musí zůstat obsah vidět. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity var(--t-slow) ease, transform var(--t-slow) var(--back);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responzivita ---------- */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-art {
    order: 2;
    min-height: 420px;
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  /* Pod tímto breakpointem je hero na jeden sloupec — mocky musí zůstat
     uvnitř kolony, jinak přetékají přes okraj stránky. */
  .mock-search {
    left: 0;
    width: 88%;
  }

  .mock-job {
    right: 0;
    width: 70%;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .staff {
    height: 84px;
  }

  .staff::before {
    background-size: 252px 84px;
    inset: 0 -252px 0 0;
  }

  @keyframes staff-scroll {
    to {
      transform: translateX(-252px);
    }
  }
}

/* Vedle přepínače jazyka a tlačítka se název značky pod tuto hladinu nevejde
   (zbyla by z něj rozlámaná slova). Ikona značku projeví taky. */
@media (max-width: 480px) {
  .brand span {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
