/* Landing page podle designu v ui-spec/web. Tokeny jsou stejné jako
   lib/ui/foundation v aplikaci. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --background: #f1f1ec;
  --surface: #fbfbf8;
  --line: #deddd5;
  --text: #1f2624;
  --text-2: #545c58;
  --caption: #626965;
  --deep: #2f4a44;
  --glow: #f3e3b5;
  --recorded: #dce6df;
  --track: #e3e3dc;
  --good: #7e9a8f;
  --sage-2: #6f8c76;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-text: "Instrument Sans", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--text);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.wrap-narrow {
  max-width: 860px;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

.section-intro p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caption);
}

.eyebrow-small {
  font-size: 13px;
}

/* Hlavička */

.site-header {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand svg {
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-2);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* Tlačítka */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--deep);
  color: var(--surface);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 38, 36, 0.16);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:focus-visible,
.soon-close:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
}

.btn-dark {
  background: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}

.btn-glow {
  background: var(--glow);
  color: var(--text);
}

.btn-glow-outline {
  background: transparent;
  color: var(--glow);
  border: 1.5px solid var(--glow);
}

.cta .btn:focus-visible {
  outline-color: var(--glow);
}

.btn-block {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
}

/* Hero */

.hero {
  padding-top: 48px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-copy > * {
  animation: rise 0.9s var(--ease-out) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h1-soft {
  color: var(--good);
}

.hero-lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 540px;
  text-wrap: pretty;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.pill {
  background: var(--recorded);
  color: var(--deep);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.hero-art {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
  position: relative;
  animation: fade 1.2s 0.2s ease-out both;
}

.hero-frame {
  padding: 14px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(31, 38, 36, 0.1);
}

.hero-picture {
  width: min(340px, calc(100vw - 76px));
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}

.hero-picture img,
.hero-picture svg {
  display: block;
  width: 100%;
  height: 100%;
}

.float-card {
  position: absolute;
  display: flex;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(31, 38, 36, 0.12);
}

.float-rhythm {
  left: 0;
  bottom: 36px;
  width: 230px;
  padding: 14px 16px;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  animation: float 6s ease-in-out infinite;
}

.float-piece {
  right: 0;
  top: 30px;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 38, 36, 0.18);
  animation: float 7s ease-in-out -3s infinite;
}

.float-piece-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-title {
  font-size: 13px;
  font-weight: 600;
}

.float-note {
  font-size: 12px;
  color: var(--caption);
}

.float-note-dark {
  font-size: 12px;
  color: #c9cdc6;
  font-variant-numeric: tabular-nums;
}

.piece-icon {
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--glow);
  clip-path: polygon(10% 0, 100% 18%, 82% 100%, 0 76%);
}

/* Dílky ukazatele rytmu */

.segments {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.segments i {
  display: block;
  background: var(--track);
}

.segments-small {
  gap: 3px;
}

.segments-small i {
  height: 7px;
  border-radius: 4px;
}

.segments-large {
  gap: 5px;
}

.segments-large i {
  height: 12px;
  border-radius: 6px;
}

.segments .on-good {
  background: var(--good);
}

.segments .on-ideal {
  background: var(--deep);
}

.grow {
  transform-origin: left center;
  animation: grow 0.7s var(--ease-out) both;
}

/* Dva druhy pokroku */

.band-surface {
  background: var(--surface);
}

.two-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 20px;
}

.panel {
  background: var(--background);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.big-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-2);
}

.big-number span:first-child {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.9;
  font-weight: 600;
  color: var(--text);
}

.panel-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
}

.thumbs {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.thumbs img {
  flex: 0 1 96px;
  min-width: 0;
  width: 96px;
  border-radius: 12px;
}

.card-hover {
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(31, 38, 36, 0.08);
}

/* Jak to funguje */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.step {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--sage-2);
}

.step h3 {
  font-size: 21px;
  font-weight: 600;
}

.step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

/* Vynechaný den */

.band-deep {
  background: var(--deep);
  color: var(--surface);
}

.miss {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.miss-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.miss-copy p {
  font-size: 18px;
  line-height: 1.55;
  color: #d5ddd8;
}

.miss-list {
  flex: 1 1 420px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

.miss-list li {
  background: rgba(251, 251, 248, 0.08);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.miss-list strong {
  font-size: 17px;
  font-weight: 600;
}

.miss-list span {
  font-size: 15px;
  line-height: 1.5;
  color: #c9d3cd;
}

/* Obrazy */

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery img {
  width: 200px;
  border-radius: 16px;
}

.gallery figcaption {
  font-size: 15px;
  font-weight: 600;
}

.lift {
  transition: transform 0.35s var(--ease-out);
}

.lift:hover {
  transform: translateY(-6px);
}

.next-picture {
  width: 200px;
  height: 250px;
  border-radius: 16px;
  border: 1.5px dashed #bfc3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.next-picture p {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}

/* Otázky */

.faq {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 19px;
  font-weight: 600;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

#faq .section {
  gap: 32px;
}

/* Výzva ke stažení */

.cta {
  background: var(--text);
  color: var(--surface);
  border-radius: 36px;
  padding: clamp(40px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-copy svg {
  display: block;
}

.cta h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.cta-copy p {
  font-size: 18px;
  line-height: 1.55;
  color: #c9cdc6;
}

/* Patička */

.site-footer {
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--caption);
}

/* Dialog „Almost there.“ */

.soon {
  width: calc(100% - 48px);
  max-width: 440px;
  border: 0;
  border-radius: 28px;
  padding: 36px 32px 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(31, 38, 36, 0.25);
  text-align: center;
}

.soon[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: pop 0.4s var(--ease-out) both;
}

.soon::backdrop {
  background: rgba(31, 38, 36, 0.45);
  animation: fade 0.25s ease-out both;
}

.soon h2 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.soon p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

.soon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Dílky symbolu */

.seventh {
  transform-box: fill-box;
  animation: slide 1.4s 0.4s var(--ease-out) both;
}

.breathe {
  transform-box: fill-box;
  animation: breathe 4.5s ease-in-out infinite;
}

/* Hero obraz, který skládá skript */

.hero-picture .glow {
  animation: glow 2.2s ease-out both;
}

.hero-picture .new {
  transform-box: fill-box;
  transform-origin: center;
  animation: settle 0.8s var(--ease-out) both;
}

/* Animace */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes settle {
  0% {
    opacity: 0;
    transform: scale(1.12);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes slide {
  from {
    transform: translate(6px, 6px);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-2px, -2px);
  }
}

/* Postupné odhalování při posunu, jen kde to prohlížeč umí. Jinde je obsah
   rovnou vidět. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }

  .reveal-bar {
    transform-origin: left center;
    animation: grow linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
