/* 1% Better web. Farby a písmo ako appka. */

@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  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: "Sora";
  src: url("fonts/sora-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  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 {
  --bg: #0f1013;
  --text: #e8e9eb;
  --muted: #a3a7ae;
  --line: #25272d;
  --red: #E63946;
  --amber: #F4A300;
  --pad: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- horná lišta ---------- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.top nav a {
  margin-left: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.top nav a:hover { color: var(--text); }
@media (max-width: 480px) {
  .top nav a:not(:last-child) { display: none; }   /* na mobile len Instagram */
}

/* ---------- úvod s kruhom ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 980px);
  margin-top: -74px;          /* lišta leží nad úvodom */
  padding: 150px var(--pad) 80px;
  --d: min(92svh, 64vw);      /* priemer kruhu */
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 800;
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.hero .lead {
  position: relative;
  z-index: 1;
  max-width: 17em;
  margin: 34px 0 0;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  line-height: 1.4;
}
.hero .lead span { color: var(--red); }

/* kruh a postavička: rovnaké pomery ako na obálke knihy */
.ring {
  position: absolute;
  width: var(--d);
  height: var(--d);
  right: calc(var(--d) * -0.39);
  bottom: calc(var(--d) * -0.16);
  border: calc(var(--d) * 0.046) solid var(--red);
  border-radius: 50%;
}
.ring img {
  position: absolute;
  width: 83.4%;   /* % z vnútra kruhu (bez obruče) */
  right: 18.7%;
  bottom: 24.7%;
}

@media (max-width: 860px) {
  .hero {
    --d: 118vw;
    min-height: 0;
    padding-bottom: calc(var(--d) * 0.86);
  }
}

/* ---------- sekcie ---------- */
.section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px var(--pad);
  border-top: 1px solid var(--line);
}
.label {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}
.section h2 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section p { margin: 18px 0 0; max-width: 36em; }
.section .muted { color: var(--muted); }

.status {
  display: inline-block;
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
}

.button {
  display: inline-block;
  margin-top: 26px;
  padding: 13px 22px;
  border: 2px solid var(--text);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.button:hover { background: var(--text); color: var(--bg); }
.button.red { border-color: var(--red); background: var(--red); color: #fff; }
.button.red:hover { background: transparent; color: var(--text); }

/* kniha: obálka vedľa textu */
.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}
.book img {
  width: 260px;
  border-radius: 3px;
  box-shadow: 0 1px 0 #2b2e36, 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* list */
.letter h2 { margin-bottom: 8px; }
.letter .sign { margin-top: 26px; font-weight: 700; }
.letter .sign span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .section { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 14px; }
  .book { grid-template-columns: 1fr; gap: 32px; }
  .book img { width: min(240px, 70%); order: -1; }
}

/* ---------- jednoduché stránky (book, privacy, 404) ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--pad) 88px;
}
.page h1 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.page h2 { margin: 44px 0 0; font-size: 22px; font-weight: 800; }
.page p, .page li { max-width: 36em; }
.page p { margin: 16px 0 0; }
.page ul { margin: 16px 0 0; padding-left: 1.2em; }
.page li + li { margin-top: 8px; }
.page .label + h1 { margin-top: 14px; }
.page .muted { color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: 0 14px; }

/* ---------- stránka appky: dva telefóny ---------- */
.stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 250px));
  justify-content: center;
  gap: 24px clamp(20px, 7vw, 88px);
  margin-top: 56px;
}
.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease;
}
.page .store-name {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 9 / 18.5;
  padding: 18% 10% 12%;
  border: 7px solid #24262c;
  border-radius: 34px;
  background: #15161a;
  text-align: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
/* výrez na kameru */
.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 28%;
  height: 14px;
  border-radius: 999px;
  background: #0b0c0e;
  transform: translateX(-50%);
}
.phone-icon { width: 25%; margin-bottom: 18%; }
.phone .qr {
  width: 100%;
  padding: 9%;
  border-radius: 14px;
  background: #fff;
}
.phone .qr img { width: 100%; image-rendering: pixelated; }
.page .phone-soon {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.15;
}
.page .phone-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* tlačidlo obchodu: malý obdĺžnik na ležato */
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 82%;
  min-height: 56px;
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid #3a3d45;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  transition: border-color 0.25s ease;
}
.store-button span { display: flex; flex-direction: column; font-size: 18px; font-weight: 700; text-align: left; }
.store-button small { font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.play-logo { width: 24px; height: 26px; flex: none; }
.store-button.is-off { color: var(--muted); border-style: dashed; background: transparent; }
.store-button.is-off .play-logo { opacity: 0.45; }

/* zvýraznenie: telefón, nad ktorým je myš, sa zväčší a za ním sa rozsvieti červená */
.store:hover, .store:focus-within { transform: scale(1.04); }
.store:hover .phone, .store:focus-within .phone {
  border-color: #2e3037;
  box-shadow: 0 0 36px 4px rgba(230, 57, 70, 0.32), 0 0 90px 10px rgba(230, 57, 70, 0.14);
}
.store:hover .store-button:not(.is-off), .store:focus-within .store-button:not(.is-off) { border-color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .store, .phone, .store-button { transition: none; }
  .store:hover, .store:focus-within { transform: none; }
}

.page .stores-note { margin: 40px auto 0; text-align: center; }

/* Android pred vydaním: QR a tlačidlo sú skryté, ukáže sa „Coming soon“ */
[data-android="soon"] .live-only { display: none; }
body:not([data-android="soon"]) .soon-only { display: none; }

@media (max-width: 480px) {
  .stores { gap: 16px; margin-top: 40px; }
  .phone { border-width: 5px; border-radius: 24px; }
  .phone::before { top: 8px; height: 10px; }
  .phone .qr { border-radius: 10px; }
  .page .phone-note { font-size: 11px; }
  .store-button { width: 100%; min-height: 48px; gap: 8px; padding: 6px 8px; }
  .store-button span { font-size: 14px; }
  .store-button small { font-size: 8px; }
  .play-logo { width: 18px; height: 20px; }
}

/* ---------- pätička ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px var(--pad) 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot .brand { color: var(--text); font-size: 12px; }
.foot .brand img { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
