/* fydbek.com: coming soon. Světlá plocha, černé písmo a linky, černé akce.
   Oranžová fydbeku jen v ilustracích (plovoucí piny), nikdy v textu ani na tlačítku. */

@font-face {
  font-family: "Hanken";
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken";
  src: url("/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --black: #000000;
  --white: #ffffff;
  --gray: #f4f4f0;
  --graphite: #242423;
  --ash: #d1d5dc;
  --muted: #6b6b66;
  /* Jen ilustrace. */
  --pin: #f0441a;
  --sans: "Hanken", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font: 400 16px / 1.4 var(--sans);
  letter-spacing: -0.02em;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}

/* ---------- hlavička: bílá lišta, svislé děliče, černá buňka s akcí ---------- */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  height: 80px;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  text-decoration: none;
  margin-right: auto;
}
.brand svg {
  width: 26px;
  height: 26px;
  fill: var(--black);
}
.brand span {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
}
.nav a {
  padding: 8px 16px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
}
.nav a:hover {
  background: var(--gray);
}
.nav a[aria-current] {
  color: var(--white);
  background: var(--black);
}
/* Jazyk je oddělený svislou linkou, aby se nepletl s menu. Aktivní jazyk jen tučně. */
.langs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
  border-left: 1px solid var(--black);
}
.langs a {
  padding: 6px 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.langs a:hover {
  color: var(--black);
}
.langs a[aria-current] {
  font-weight: 600;
  color: var(--black);
}
.top .cta {
  display: flex;
  align-items: center;
  padding: 0 32px;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  background: var(--black);
  border-left: 1px solid var(--black);
}
.top .cta:hover {
  text-decoration: underline;
}

/* ---------- úvod na šedé ploše s plovoucími piny ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 13vh, 136px) 24px clamp(136px, 20vh, 200px);
  text-align: center;
  background: var(--gray);
}
.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 15ch;
  font-weight: 450;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero .lede {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 28px auto 0;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.017em;
  text-wrap: pretty;
}

.form {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 36px auto 0;
}
.field {
  display: flex;
  gap: 12px;
}
.field input {
  flex: 1;
  min-width: 0;
  height: 64px;
  padding: 0 24px;
  font: 400 18px / 1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--graphite);
  border-radius: 4px;
  outline: none;
}
.field input::placeholder {
  color: var(--muted);
}
.field input:focus {
  box-shadow: 0 0 0 2px var(--black);
}
.field button {
  flex: none;
  height: 64px;
  padding: 0 32px;
  font: 500 18px / 1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--white);
  background: var(--black);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.field button:hover {
  text-decoration: underline;
}
.field button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.field button:disabled {
  opacity: 0.6;
  cursor: default;
  text-decoration: none;
}
.nw {
  white-space: nowrap;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 15px;
}
.status[data-state="ok"] {
  font-weight: 600;
}
.fine {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.fine a {
  color: var(--muted);
}

/* Ukázka widgetu přímo na téhle stránce (data-demo, nic se neodesílá). */
.try {
  position: relative;
  z-index: 2;
  margin: 28px 0 0;
}
.try-btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 22px 12px 16px;
  font: 500 17px / 1.2 var(--sans);
  letter-spacing: -0.02em;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 999px;
  cursor: pointer;
}
.try-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--pin);
  stroke: var(--black);
  stroke-width: 4px;
}
.try-btn:hover {
  color: var(--white);
  background: var(--black);
}
.try-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.try-btn:disabled {
  cursor: default;
  color: var(--black);
  background: var(--white);
}

/* Plovoucí piny fydbeku: horní plocha a pod ní posunutá kopie jako tloušťka. */
.pins {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.pins svg {
  position: absolute;
  display: block;
  overflow: visible;
}
.pins .face {
  fill: var(--pin);
  stroke: var(--black);
  stroke-width: 2.2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.pins text {
  font: 700 30px var(--sans);
  letter-spacing: -0.04em;
  fill: var(--black);
}
.pins svg {
  animation: float 7s ease-in-out infinite alternate;
}
.pins .p1 {
  left: 4%;
  top: 13%;
  width: 150px;
  transform: rotate(-24deg);
  animation-duration: 6.4s;
}
.pins .p2 {
  left: -3%;
  top: 48%;
  width: 230px;
  transform: rotate(14deg);
  animation-duration: 8s;
}
.pins .p3 {
  right: 6%;
  top: 10%;
  width: 120px;
  transform: rotate(18deg);
  animation-duration: 7.2s;
}
.pins .p4 {
  right: -4%;
  top: 44%;
  width: 190px;
  transform: rotate(-30deg);
  animation-duration: 6.8s;
}
.pins .p5 {
  right: 15%;
  bottom: 25%;
  width: 170px;
  transform: rotate(8deg);
  animation-duration: 9s;
}
.pins .p6 {
  left: 17%;
  bottom: 30%;
  width: 92px;
  transform: rotate(-12deg);
  animation-duration: 7.6s;
}
@keyframes float {
  from {
    translate: 0 -8px;
  }
  to {
    translate: 0 10px;
  }
}

/* ---------- karty pod úvodem ---------- */
.cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: -88px auto 0;
  padding: 0 24px;
}
.card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--ash);
  border-radius: 16px;
}
.card h2 {
  margin: 0;
  font-weight: 450;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.card p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--graphite);
}
.card .step {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
}
/* Ukázka produktu: rám okna jen s černou linkou, bez stínu. */
.shot {
  align-self: start;
  margin-top: -40px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 16px;
}
.shot .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 2px solid var(--black);
}
.shot .bar i {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
}
.shot .bar span {
  margin-left: 10px;
  font-size: 13px;
  color: var(--muted);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  padding: 14px 18px 16px;
  font-size: 14px;
  color: var(--graphite);
  border-top: 2px solid var(--black);
}

/* ---------- patička: černá plocha, sloupce odkazů, velké logo s pinem ---------- */
.foot {
  margin-top: 120px;
  color: var(--white);
  background: var(--black);
}
.foot a {
  color: var(--white);
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 56px;
}
.foot-title {
  max-width: 18ch;
  margin: 0;
  font-weight: 450;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.foot-mail {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  font-size: 18px;
  border: 1px solid var(--white);
  border-radius: 999px;
}
.foot .foot-mail:hover {
  color: var(--black);
  background: var(--white);
  text-decoration: none;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.foot-cols h2 {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #9a9a94;
}
.foot-cols ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}
.foot-cols a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-mark {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.foot-word {
  font-weight: 600;
  font-size: clamp(110px, 27vw, 392px);
  /* Místo dole pro ocásek y. */
  line-height: 1.12;
  letter-spacing: -0.065em;
}
/* Pin "zapíchnutý" za logem, jako by šlo o další připomínku. */
.foot-pin {
  flex: none;
  width: clamp(56px, 11vw, 150px);
  margin: 0.04em 0 0 -0.02em;
  overflow: visible;
  transform: rotate(14deg);
  animation: float 7s ease-in-out infinite alternate;
}
.foot-pin .face {
  fill: var(--pin);
  stroke: var(--black);
  stroke-width: 2.2px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.foot-pin text {
  font: 700 30px var(--sans);
  letter-spacing: -0.04em;
  fill: var(--black);
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  font-size: 14px;
  color: #9a9a94;
  border-top: 1px solid #3a3a38;
}
.foot-base p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  transform: translate(-50%, 160%);
  padding: 16px 22px;
  font-size: 16px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
  visibility: hidden;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s 0.4s;
}
.toast.on {
  transform: translate(-50%, 0);
  visibility: visible;
  transition-delay: 0s;
}

@media (max-width: 1000px) {
  .foot-in {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-top: -64px;
  }
  .shot {
    margin-top: 0;
    order: -1;
  }
  .pins .p5,
  .pins .p6 {
    display: none;
  }
}
@media (max-width: 640px) {
  .top {
    height: 64px;
  }
  .brand {
    padding: 0 16px;
  }
  .brand span {
    font-size: 24px;
  }
  .langs {
    padding: 0 8px;
  }
  .top .cta {
    display: none;
  }
  .hero {
    padding: 72px 16px 120px;
  }
  .hero .lede {
    font-size: 18px;
  }
  .field {
    flex-direction: column;
  }
  .field input {
    flex: none;
  }
  .field button {
    width: 100%;
  }
  .pins .p1 {
    left: -8%;
    top: 3%;
    width: 96px;
  }
  .pins .p3 {
    right: -6%;
    top: 2%;
    width: 84px;
  }
  .pins .p2,
  .pins .p4 {
    display: none;
  }
  .cards {
    padding: 0 16px;
  }
  .card {
    padding: 24px;
  }
  .card h2 {
    font-size: 30px;
  }
  .foot-in {
    padding: 56px 16px 40px;
  }
  .foot-title {
    font-size: 30px;
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-mark,
  .foot-base {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pins svg,
  .foot-pin {
    animation: none;
  }
  .toast {
    transition: none;
  }
}

/* ---------- video s ukázkou pod tlačítkem Vyzkoušet ---------- */
.demo-video {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 56px auto 0;
}
.demo-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 16px;
}
.demo-video figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .demo-video {
    margin-top: 40px;
  }
  .demo-video video {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- hlavní akce v úvodu: založit účet, vedle ukázka na stránce ---------- */
.try {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.go {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 30px;
  font: 500 18px / 1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  background: var(--black);
  border-radius: 999px;
}
.go:hover {
  text-decoration: underline;
}
.go:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.try .try-btn {
  height: 56px;
}
.go-fine {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- odběr novinek nad patičkou ---------- */
.news {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 112px;
  text-align: center;
}
.news h2 {
  margin: 0 0 24px;
  font-weight: 450;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
}
@media (max-width: 640px) {
  .news {
    padding: 64px 16px 72px;
  }
  .go,
  .try .try-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- kde fydbek najdete: odznaky Claude a ChatGPT pod tlačítky ---------- */
.stores {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
}
.stores a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 12px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.stores a:hover {
  color: var(--white);
  background: var(--black);
}
.stores a:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.stores span {
  display: grid;
  text-align: left;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
}
.stores small {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.stores a:hover small {
  color: var(--ash);
}

/* ---------- funguje tam, kde už pracujete: agenti a nástroje na úkoly ---------- */
.works {
  max-width: 1200px;
  margin: 120px auto 0;
  padding: 0 24px;
}
.works h2 {
  margin: 0 0 40px;
  font-weight: 450;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.panel {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 16px;
}
.panel .step {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
}
.panel h3 {
  margin: 0;
  font-weight: 450;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.panel p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--graphite);
}
.prompts {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.prompts li {
  justify-self: start;
  max-width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.35;
  background: var(--gray);
  border-radius: 18px 18px 18px 4px;
}
.panel .store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-weight: 500;
  font-size: 16px;
  color: var(--black);
  text-decoration: none;
  border: 2px solid var(--black);
  border-radius: 999px;
}
.store:hover {
  background: var(--gray);
}
.store:focus-visible,
.panel .more:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.panel .more {
  margin-top: auto;
  padding-top: 24px;
  font-size: 15px;
}
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.tools li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  font-weight: 500;
  font-size: 16px;
  background: var(--gray);
  border-radius: 12px;
}
.tools svg {
  width: 22px;
  height: 22px;
  flex: none;
}
@media (max-width: 1000px) {
  .works-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .works {
    margin-top: 80px;
    padding: 0 16px;
  }
  .panel {
    padding: 24px;
  }
  .panel h3 {
    font-size: 28px;
  }
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stores a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------- souhlas s cookies (assets/consent.js) ---------- */
.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  gap: 16px;
  max-width: 440px;
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.45;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
}
.consent p {
  margin: 0;
}
.consent a {
  color: inherit;
  text-underline-offset: 3px;
}
.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Odmítnutí musí být stejně snadné jako souhlas, obě tlačítka proto vypadají stejně. */
.consent-actions button {
  height: 44px;
  padding: 0 16px;
  font: 500 16px / 1 var(--sans);
  color: var(--white);
  background: var(--black);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.consent-actions button:hover {
  text-decoration: underline;
}
.consent-actions button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.foot-consent {
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.foot-consent:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
