/* ============ Travelking brand ============ */
@font-face {
  font-family: "Trenda";
  src: url("fonts/Trenda-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Trenda";
  src: url("fonts/Trenda-Semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Trenda";
  src: url("fonts/Trenda-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Paytone One";
  src: url("fonts/PaytoneOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --tk-green: #0CAEA1;
  --tk-green-dark: #099186;
  --tk-black: #000000;
  --tk-offwhite: #F7F3ED;
  --tk-white: #FFFFFF;
  --tk-orange: #FC9D3E;
  --tk-grey: #7F7F7F;
  --tk-grey-light: #E9E9E9;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.34, 1.3, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: "Trenda", "Segoe UI", sans-serif;
  background: var(--tk-offwhite);
  color: var(--tk-black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ============ Top bar ============ */
.topbar {
  display: flex;
  justify-content: center;
  padding: 28px 24px 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--tk-black);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tk-white);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.brand-mark img { width: 24px; height: auto; }
.brand-name {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.2px;
}

/* ============ Brand pattern decorations ============
   Vychádza z TK Design Guidelines (sekcia 06 Pattern Set, 08 Design):
   tesné mriežkové bloky geometrických tvarov v rohoch, nie floatujúce
   jednotlivé kúsky. Šírka bunky = `--sh-cell`, gap medzi tvarmi = 0
   (na rozdiel od pôvodnej verzie sa shapes dotýkajú, čo zodpovedá
   pôvodnému patternu na 4. strane manuálu). */
:root { --sh-cell: 72px; }

.pattern { display: none; }
/* Spodný-ľavý súdržný blok (4×2 tvarov) — najvýraznejší stamp */
.pattern-left {
  bottom: 24px;
  left: 24px;
  grid-template-columns: repeat(2, var(--sh-cell));
  grid-template-rows: repeat(4, var(--sh-cell));
}
/* Horný-pravý menší blok (3×2) — vyvažuje kompozíciu */
.pattern-right {
  top: 100px;
  right: 24px;
  grid-template-columns: repeat(2, var(--sh-cell));
  grid-template-rows: repeat(3, var(--sh-cell));
}

.sh {
  width: var(--sh-cell);
  height: var(--sh-cell);
  background: var(--tk-green);
  display: block;
}
.sh-circle { border-radius: 50%; }
.sh-semi-down { border-radius: 0 0 var(--sh-cell) var(--sh-cell); }
.sh-semi-up { border-radius: var(--sh-cell) var(--sh-cell) 0 0; }
.sh-semi-left { border-radius: var(--sh-cell) 0 0 var(--sh-cell); }
.sh-semi-right { border-radius: 0 var(--sh-cell) var(--sh-cell) 0; }
.sh-leaf { border-radius: 0 var(--sh-cell) 0 var(--sh-cell); }
.sh-leaf.flip { border-radius: var(--sh-cell) 0 var(--sh-cell) 0; }
/* Štvorlistec (negatívny tvar zo 4 štvrťkruhov) — z patternu na strane 4 */
.sh-quatre {
  background: transparent;
  position: relative;
  overflow: hidden;
}
.sh-quatre::before,
.sh-quatre::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 50%;
  background: var(--tk-green);
  border-radius: 50%;
}
.sh-quatre::before { top: 0; left: 0; border-radius: 0 0 100% 0; }
.sh-quatre::after  { bottom: 0; right: 0; border-radius: 100% 0 0 0; }

/* ============ Stage / screens ============ */
.stage {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.screen {
  display: none;
  animation: rise 0.45s var(--ease);
}
.screen.is-active { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Intro ============ */
.screen-intro { text-align: center; padding-top: 7vh; }
.kicker {
  display: inline-block;
  background: var(--tk-green);
  color: var(--tk-white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.display {
  font-family: "Paytone One", "Trenda", sans-serif;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.04;
  margin-bottom: 22px;
}
.display .accent { color: var(--tk-green); }
.lead {
  font-size: 19px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 36px;
  color: #333;
}
.microcopy { margin-top: 14px; color: var(--tk-grey); font-size: 14px; }

/* ============ Buttons ============ */
.btn {
  font-family: "Trenda", sans-serif;
  font-weight: 700;
  font-size: 17px;
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary {
  background: var(--tk-green);
  color: var(--tk-white);
  box-shadow: 0 8px 22px rgba(12, 174, 161, 0.35);
}
.btn-primary:hover { background: var(--tk-green-dark); }
.btn-lg { font-size: 19px; padding: 18px 44px; }
.btn-ghost {
  background: transparent;
  color: var(--tk-grey);
  padding-left: 18px;
  padding-right: 18px;
}
.btn-ghost:hover { color: var(--tk-black); }
.btn-light {
  background: var(--tk-white);
  color: var(--tk-green-dark);
}
.btn-ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
}
.btn-ghost-light:hover { color: var(--tk-white); }

/* ============ Quiz ============ */
.screen-quiz { padding-top: 3vh; }
.quiz-head { margin-bottom: 30px; }
.progress-track {
  height: 10px;
  background: var(--tk-grey-light);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--tk-green);
  border-radius: 999px;
  transition: width 0.4s var(--ease);
}
.progress-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tk-grey);
}
.question {
  font-family: "Paytone One", "Trenda", sans-serif;
  font-size: clamp(26px, 4.6vw, 38px);
  line-height: 1.15;
  margin-bottom: 8px;
}
.question-hint { color: var(--tk-grey); margin-bottom: 26px; font-size: 15px; }

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tk-white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: "Trenda", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--tk-black);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.15s, background 0.15s;
}
.option:hover { transform: translateY(-3px); border-color: rgba(12, 174, 161, 0.45); }
.option.is-selected {
  border-color: var(--tk-green);
  background: #e9f9f7;
}
.option .emoji { font-size: 26px; line-height: 1; }
.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============ Result ============ */
.screen-result { padding-top: 4vh; }
.result-card {
  background: var(--tk-green);
  color: var(--tk-white);
  border-radius: 32px;
  padding: 56px 40px 44px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(12, 174, 161, 0.35);
  position: relative;
  overflow: hidden;
}
.result-card::before,
.result-card::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}
.result-card::before { width: 220px; height: 220px; top: -90px; left: -70px; }
.result-card::after { width: 280px; height: 140px; bottom: -10px; right: -80px; border-radius: 140px 140px 0 0; }
.result-crown {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}
.result-crown img { width: 30px; height: auto; }
.result-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 10px;
}
.result-title {
  font-family: "Paytone One", "Trenda", sans-serif;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  margin-bottom: 16px;
}
.result-desc {
  font-size: 18px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 26px;
  opacity: 0.95;
}
.result-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* ============ Footer ============ */
.foot {
  text-align: center;
  padding: 28px 16px 40px;
  color: var(--tk-grey);
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.foot p { margin: 0; }
.foot-demo { margin-top: 10px !important; font-size: 12px; opacity: 0.75; }
.foot-demo a { color: var(--tk-grey); text-decoration: underline; }
.foot-demo a:hover { color: var(--tk-green-dark); }

/* ============ Picks ============ */
.picks {
  margin-top: 56px;
  text-align: center;
  width: min(1180px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.picks-title {
  font-family: "Paytone One", "Trenda", sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 8px;
}
.picks-sub { color: var(--tk-grey); margin-bottom: 28px; font-size: 15px; }
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
  text-align: left;
}
@media (min-width: 1080px) {
  .picks-grid { grid-template-columns: repeat(4, 1fr); }
}
.pick {
  background: var(--tk-white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.pick:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.12); }
.pick-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--tk-grey-light);
  overflow: hidden;
}
.pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tk-green);
  color: var(--tk-white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
.pick-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pick-loc {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tk-green-dark);
}
.pick-title {
  font-family: "Paytone One", "Trenda", sans-serif;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.pick-price { font-weight: 700; font-size: 18px; }
.pick-price-was {
  color: var(--tk-grey);
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 6px;
  font-weight: 500;
}
.pick-rating { font-size: 14px; color: var(--tk-grey); font-weight: 600; }
.picks-cta { margin-top: 8px; }

.result-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 0 auto 18px;
  color: var(--tk-grey);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.result-back:hover {
  background: var(--tk-white);
  color: var(--tk-green-dark);
  transform: translateX(-2px);
}

/* === Credit-claim & member-ack — žije UVNÚTRI .result-card (zelená hero karta) === */

.result-divider {
  width: 100%;
  max-width: 480px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin: 20px auto 22px;
}

.gate-block {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.45s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.credit-card {
  width: 100%;
  max-width: 480px;
  text-align: center;
  color: var(--tk-white);
}
.credit-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: var(--tk-green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.credit-title {
  font-family: "Paytone One", "Trenda", sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--tk-white);
}
.credit-sub {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 440px;
}
.credit-sub strong { color: var(--tk-white); font-weight: 800; }
.credit-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 460px;
  margin: 0 auto;
}
.credit-input {
  flex: 1;
  min-width: 180px;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.96);
  color: var(--tk-black);
  outline: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.credit-input::placeholder { color: #888; }
.credit-input:focus {
  border-color: var(--tk-white);
  background: var(--tk-white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.credit-form button {
  background: var(--tk-white) !important;
  color: var(--tk-green-dark) !important;
  font-weight: 800;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}
.credit-form button:hover { background: #f4f4f4 !important; }
.credit-form button:active { transform: scale(0.98); }
.credit-error {
  color: #fff;
  background: rgba(255, 68, 56, 0.22);
  border: 1px solid rgba(255, 68, 56, 0.55);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  margin: 14px auto 0;
  display: inline-block;
}
.credit-skip {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  cursor: pointer;
}
.credit-skip:hover { color: var(--tk-white); }

.credit-success { text-align: center; padding: 0; }
.credit-success-mark {
  width: 56px;
  height: 56px;
  background: var(--tk-white);
  color: var(--tk-green-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 16px;
  animation: pop 0.4s var(--ease) both;
}
.credit-success .btn-primary,
.credit-card > .btn-primary {
  background: var(--tk-white) !important;
  color: var(--tk-green-dark) !important;
  font-weight: 800;
  padding: 14px 32px;
}
.credit-success .btn-primary:hover,
.credit-card > .btn-primary:hover { background: #f4f4f4 !important; }
@keyframes pop {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* "Vyplnit znovu" je teraz decentný textový link na dne karty */
.result-restart {
  margin-top: 22px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.18s, background 0.18s;
}
.result-restart:hover { color: var(--tk-white); background: rgba(255,255,255,0.1); }

.lang-switch {
  display: none !important; /* dočasne skryté na požiadanie — markup ostáva pre rýchle znovuzapnutie */
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  gap: 2px;
  z-index: 10;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--tk-grey);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.5px;
}
.lang-switch a:hover { color: var(--tk-black); }
.lang-switch a.is-active {
  background: var(--tk-green);
  color: var(--tk-white);
}
.topbar { position: relative; }

/* ============ Subscribe ============ */
.subscribe {
  margin: 56px auto 0;
  width: min(720px, calc(100vw - 48px));
}
.subscribe-card {
  background: var(--tk-white);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid rgba(12, 174, 161, 0.18);
}
.subscribe-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tk-green-dark);
  margin-bottom: 8px;
}
.subscribe-title {
  font-family: "Paytone One", "Trenda", sans-serif;
  font-size: clamp(24px, 3.4vw, 32px);
  margin-bottom: 12px;
}
.subscribe-desc {
  color: var(--tk-grey);
  font-size: 15px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 26px;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-input {
  flex: 1;
  min-width: 220px;
  font-family: "Trenda", sans-serif;
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 2px solid var(--tk-grey-light);
  background: var(--tk-offwhite);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.subscribe-input:focus { border-color: var(--tk-green); background: var(--tk-white); }
.subscribe-input.has-error { border-color: #d6453a; background: #fff4f3; }
.subscribe-form .btn { padding: 15px 28px; font-size: 16px; }
.subscribe-error {
  color: #d6453a;
  font-size: 14px;
  margin-top: 6px;
}
.subscribe-success p {
  color: var(--tk-green-dark);
  font-weight: 700;
  font-size: 16px;
  margin: 8px 0 18px;
}
.subscribe-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--tk-grey-light);
}
.link-skip,
.link-preview {
  background: transparent;
  border: none;
  color: var(--tk-grey);
  font-family: "Trenda", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.link-skip:hover,
.link-preview:hover { color: var(--tk-black); background: var(--tk-offwhite); }

@media (max-width: 900px) {
  .pattern { display: none; }
}
/* Mobile-tight pre result-card — agresívne škrtáme balast (crown, kicker, redundantné nadpisy,
   prebytočné chips), zmenšujeme paddingy, stack-ujeme form vertikálne. Cieľ: profil +
   500 kreditů + email field + CTA všetko nad foldom 360×640. */
@media (max-width: 640px) {
  .result-card {
    padding: 28px 20px 24px;
    border-radius: 22px;
  }
  .result-crown { display: none; }
  .result-kicker {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    opacity: 0.75;
  }
  .result-title {
    font-size: clamp(26px, 8vw, 34px);
    margin-bottom: 10px;
  }
  .result-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .result-chips { gap: 6px; margin-bottom: 14px; }
  .chip { padding: 5px 11px; font-size: 11.5px; }
  .result-chips .chip:nth-child(n+5) { display: none; }
  .result-divider { margin: 8px auto 14px; max-width: 240px; }
  .credit-badge { font-size: 11px; padding: 6px 13px; margin-bottom: 10px; }
  .credit-sub { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
  .credit-form { flex-direction: column; gap: 8px; max-width: 320px; }
  .credit-input { width: 100%; padding: 12px 18px; font-size: 14.5px; }
  .credit-form button { width: 100%; padding: 13px 18px; font-size: 14.5px; }
  .credit-success-mark { width: 44px; height: 44px; font-size: 22px; margin-bottom: 10px; }
  .credit-skip { margin-top: 12px; font-size: 12px; }
  .result-restart { margin-top: 14px; font-size: 12px; padding: 5px 10px; }
}

@media (max-width: 560px) {
  .options { grid-template-columns: 1fr; }
  .result-card { padding: 28px 18px 22px; }
}
