/* ============================================================
   FABLE — stran prehoda BAJK.SI → ThatBike (page-thatbike.php)

   Videz po zgledu nordqr.com, pisava strani bajk.si (Inter, fonts-local.css):
   prikaz izdelka pod uvodom, ki ga spodnji rob prereže, velik
   stavek v Inter, siv pas z vrsticami (temna plošča + besedilo),
   tri temne kartice, temen zaključek.

   Naloži se samo na tej strani. Vse je pod .tb, besedilni elementi
   imajo svoje razrede (.tb .tb-x = 0,2,0), ker dark-mode.css barva
   gole h1/h2/p/li/a z html[data-theme="dark"] (0,1,2).
   Pasovi so <div>, ne <section>: tema daje vsakemu section v
   body.page min-height 520px, temni način pa mu vsili ozadje.
   ============================================================ */

.tb {
  --tb-display:    "Inter", sans-serif;   /* naslovi: pisava strani bajk.si, ne referenčne strani */
  --tb-sans:       "Inter", sans-serif;

  --tb-paper:      #ffffff;
  --tb-band:       #ececee;            /* siv pas z vrsticami */
  --tb-ink:        #27272a;
  --tb-ink-strong: #18181b;
  --tb-body:       #3f3f46;
  --tb-muted:      #63636b;
  --tb-line:       #e4e4e7;
  --tb-accent:     #0a7aa3;            /* kljukice, prevod (≥4,5:1 na beli) */

  --tb-card:       #ffffff;

  --tb-panel-a:    #262f45;
  --tb-panel-b:    #1a2131;
  --tb-glow:       rgba(196, 98, 52, .55);

  --tb-close:      #18181b;

  --tb-ease: cubic-bezier(.16, 1, .3, 1);

  /* izniči odmike <section> (20/15/50 px) in wrapper-flash (20 px),
     da pasovi segajo od glave do noge čez celo širino */
  margin: -40px -15px -50px;
  font-family: var(--tb-sans);
  color: var(--tb-body);
  background: var(--tb-paper);
  -webkit-font-smoothing: antialiased;
}

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

.tb ::selection { background: #0d9ecc; color: #fff; }

.tb .tb-wrap {
  width: 100%;
  max-width: 1148px;               /* 1100 px vsebine kot glava in noga teme */
  margin: 0 auto;
  padding: 0 24px;
}

.tb .tb-wrap-narrow { max-width: 1008px; }

.tb .tb-list { margin: 0; padding: 0; list-style: none; }
.tb .tb-list > li { margin: 0; }

.tb .tb-flag {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(24, 24, 27, .08);
}

/* ---------- skupni naslovi ---------- */

.tb .tb-h2 {
  margin: 0;
  font-family: var(--tb-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.028em;
  color: var(--tb-ink);
  text-wrap: balance;
}

.tb .tb-p {
  max-width: 30em;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--tb-body);
  text-wrap: pretty;
}

/* ============================================================
   1) UVOD + PRIKAZ
   ============================================================ */

.tb .tb-hero {
  position: relative;
  background: var(--tb-paper);
  padding-top: 64px;
}

/* konfeti ob nalaganju (skripta na koncu page-thatbike.php) */
.tb .tb-confetti {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}

.tb .tb-hero-head { text-align: center; }

.tb .tb-h1 {
  margin: 0;
  font-family: var(--tb-display);
  font-size: clamp(34px, 4.8vw, 66px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.034em;
  color: var(--tb-ink);
  text-wrap: balance;
}

.tb .tb-h1 span { display: block; }

/* logo ThatBike v naslovu: spodnji rob slike = osnovnica črk, višina ≈ velike črke pisave Inter */
.tb .tb-h1-logo {
  display: inline-block;
  width: auto;
  height: .82em;
  vertical-align: baseline;
}

/* ime znamke v besedilu (male črke): krepkejše od okolice tudi v naslovih, ki so že 700;
   Inter je naložen samo do 700, zato debelino doda obris v barvi besedila */
.tb .tb-brand {
  font-weight: 700;
  -webkit-text-stroke: .035em currentColor;
}

.tb .tb-lead {
  max-width: 48em;
  margin: 16px auto 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--tb-body);
  text-wrap: balance;
}

/* slogan pod odstavkom (»Buy. Sell. Ride.«, v angleščini kot znamka) */
.tb .tb-promise {
  max-width: 40em;
  margin: 18px auto 0;
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--tb-ink);
  text-wrap: balance;
}

/* prikaz: kartice oglasov iz več držav na obodu velikega kolesa; kolo se počasi
   vrti, kartice prihajajo z leve in odhajajo na desno, spodaj se zlijejo v ozadje (brez črte) */
.tb .tb-arc {
  --R: 4100px;             /* polmer kolesa: 72 kartic po ~358 px na obodu */
  --W: 264px;              /* širina kartice (196 → 232 → 264 px: večje in manj hkrati na zaslonu) */
  --fade: 140px;           /* višina prehoda v ozadje na dnu */
  position: relative;
  height: 386px;                   /* besedilo srednje kartice je nad večino prehoda */
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

.tb .tb-arc::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: var(--fade);
  background: linear-gradient(180deg, transparent 0%, var(--tb-paper) 85%);
  pointer-events: none;
}

/* os kolesa: točka brez velikosti, okoli katere se vrtijo kartice */
.tb .tb-ring {
  position: absolute;
  left: 50%;
  top: calc(30px + var(--R));
  width: 0;
  height: 0;
  animation: tbSpin 540s linear infinite;   /* ~48 px/s na vrhu kolesa */
  will-change: transform;
}

@keyframes tbSpin { to { transform: rotate(360deg); } }

/* zgornja sredina kartice je na osi, kartica gre za R navzgor in se obrne za svoj kot (--a) */
.tb .tb-ring > .tb-rc {
  position: absolute;
  left: calc(var(--W) / -2);
  top: 0;
  width: var(--W);
  overflow: hidden;
  border-radius: 16px;
  background: var(--tb-card);
  box-shadow: 0 0 0 1px var(--tb-line), 0 18px 36px -18px rgba(24, 24, 27, .35);
  transform-origin: 50% 0;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--R)));
}

.tb .tb-rc-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #ffffff;
}

.tb .tb-rc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.tb .tb-rc-t {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: var(--tb-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tb .tb-rc-p {
  font-size: 16.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tb-ink);
}

.tb .tb-rc-w {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tb-muted);
  white-space: nowrap;
}

.tb .tb-rc-w .tb-flag { width: 14px; height: 14px; }

/* splet in aplikacija prihajajo: lastne oznake (uradni znački trgovin smeta le za objavljeno aplikacijo), ikone Font Awesome 5 teme */
.tb .tb-apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 40px;
}

/* vsi trije gumbi enako široki, v slogu značk trgovin (svetla, siva obroba); splet je prvi */
.tb .tb-apps-row {
  display: grid;
  grid-template-columns: repeat(3, 188px);
  gap: 12px;
}

.tb .tb-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--tb-paper);
  box-shadow: inset 0 0 0 1px #c9c9cf;
  color: var(--tb-ink);
}

.tb .tb-app i {
  width: 28px;
  font-size: 27px;
  text-align: center;
  color: var(--tb-ink);
}

.tb .tb-app .fa-google-play { font-size: 22px; }
.tb .tb-app .fa-globe { font-size: 24px; }

.tb .tb-app-t {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.015em;
  white-space: nowrap;             /* domena thatbike.com se ne sme prelomiti */
  color: var(--tb-ink);
}

.tb .tb-app-t small {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--tb-muted);
}

html[data-theme="dark"] .tb .tb-app { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }


/* ============================================================
   2) TRI PREDNOSTI: barvne kartice, vizual spodaj sega do roba
   ============================================================ */

.tb .tb-feats {
  background: var(--tb-band);
  padding: 112px 0;
}

.tb .tb-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 112px;
}

/* vsaka prednost je vrstica: samostojna barvna plošča s sliko levo, besedilo desno na pasu */
.tb .tb-tiles > .tb-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  margin: 0;
}

.tb .tb-tile-copy {
  grid-column: 2;
  grid-row: 1;
}

/* plošče malo svetlejše, kartice na njih mehkejše: manjši kontrast med ozadjem in karticami */
.tb .tb-tile-a .tb-tile-vis { background: #3b4a52; }
.tb .tb-tile-b .tb-tile-vis { background: linear-gradient(180deg, #352b4b 0%, #45345f 100%); }
.tb .tb-tile-c .tb-tile-vis { background: linear-gradient(180deg, #1f2658 0%, #29367c 100%); }

.tb .tb-tile-h {
  margin: 0;
  font-family: var(--tb-display);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--tb-ink);
}

.tb .tb-tile-p {
  max-width: 28em;
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--tb-body);
  text-wrap: pretty;
}

.tb .tb-tile-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--tb-ink);
}

.tb .tb-tile-check svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--tb-accent); }

.tb .tb-tile-vis {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
}

/* kartica Večja izbira: trije nagnjeni stolpci oglasov iz več držav, brez animacije.
   Stolpci so višji od plošče, srednji je zamaknjen navzgor; mozaik je na sredini plošče in ožji
   od nje, zato ob straneh ostane prazen rob plošče (kartice ne segajo čez vso širino). */
.tb .tb-mosaic {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.tb .tb-mos-col {
  flex: 0 0 130px;
  width: 130px;
  margin: 0;
}

.tb .tb-mos-col:nth-child(2) { margin-top: -80px; }

/* stolpci so višji od plošče: zgoraj in spodaj se kartice postopno prelijejo v barvo plošče (#3b4a52),
   zato se ne dotaknejo sivega pasu; ob straneh preliv ni potreben, ker je mozaik ožji od plošče.
   Mehčani prehod brez trde črte, dolžina v --tb-fade */
.tb .tb-tile-a .tb-tile-vis::after {
  --tb-fade: 88px;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(to bottom,
      rgb(59 74 82) 0, rgb(59 74 82 / .88) calc(var(--tb-fade) * .2), rgb(59 74 82 / .55) calc(var(--tb-fade) * .45),
      rgb(59 74 82 / .2) calc(var(--tb-fade) * .72), rgb(59 74 82 / 0) var(--tb-fade),
      rgb(59 74 82 / 0) calc(100% - var(--tb-fade)), rgb(59 74 82 / .2) calc(100% - var(--tb-fade) * .72),
      rgb(59 74 82 / .55) calc(100% - var(--tb-fade) * .45), rgb(59 74 82 / .88) calc(100% - var(--tb-fade) * .2), rgb(59 74 82) 100%);
  pointer-events: none;
}

.tb .tb-mos-col > .tb-mos-item {
  display: flex;
  flex-direction: column;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(180deg, #f8f9fa 0%, #e7e9ed 100%);
  box-shadow: 0 16px 26px -14px rgba(0, 0, 0, .45);
}

.tb .tb-mos-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #ffffff; }
.tb .tb-mos-p { padding: 9px 11px 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: #18181b; }
.tb .tb-mos-w { display: flex; align-items: center; gap: 5px; padding: 2px 11px 10px; font-size: 12px; color: #52525b; white-space: nowrap; }
.tb .tb-mos-w .tb-flag { width: 12px; height: 12px; }

/* kartica Hitrejša prodaja: vrstice mest v ozadju (brez animacije), spredaj prodano kupcu iz Münchna */
.tb .tb-tile-vis-reach {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* vrstica je izpisana dvakrat in postavljena na sredino, zato sega čez oba roba plošče */
.tb .tb-city-row { display: flex; flex: 0 0 auto; justify-content: center; width: 100%; overflow: hidden; opacity: .19; }   /* mesta zlita v ozadje, v ospredju je kartica Prodano */

.tb .tb-city-track {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  width: max-content;
}

.tb .tb-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8f9fa 0%, #e7e9ed 100%);
  box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .4);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #18181b;
  white-space: nowrap;
}

.tb .tb-pill .tb-flag { width: 16px; height: 16px; }

/* prodano: kartica kot oglas v mreži (fotografija zgoraj), pokončna, da se ne bije z vrsticami mest */
.tb .tb-sold {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 300px;
  overflow: hidden;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 30px 50px -16px rgba(0, 0, 0, .7);
}

.tb .tb-sold-media { position: relative; display: block; }
.tb .tb-sold-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #ffffff; border-bottom: 1px solid #ececf0; }
.tb .tb-sold-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.tb .tb-sold-p { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tb .tb-sold-t { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tb .tb-sold-w { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 14px; color: #52525b; }
.tb .tb-sold-w .tb-flag { width: 16px; height: 16px; }

.tb .tb-sold-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #16a34a;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(22, 163, 74, .4);
}

/* kartica Vedno v slovenščini: isti oglas v treh jezikih; slovenski na sredini je večji in poln,
   druga dva sta manjša in prosojnejša */
.tb .tb-tile-vis-tr {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb .tb-gloss-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 86%;
}

.tb .tb-gloss {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 86%;
  margin: 0;
  padding: 12px 12px 12px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8f9fa 0%, #e7e9ed 100%);
  box-shadow: 0 16px 26px -14px rgba(0, 0, 0, .45);
  opacity: .86;
}

.tb .tb-gloss.is-main {
  z-index: 1;
  width: 100%;
  padding: 18px 16px 18px 26px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 30px 50px -16px rgba(0, 0, 0, .7);
  opacity: 1;
}

.tb .tb-gloss-flag {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #ffffff, 0 6px 12px rgba(0, 0, 0, .3);
}

.tb .tb-gloss.is-main .tb-gloss-flag { top: -15px; left: -15px; width: 38px; height: 38px; }

.tb .tb-gloss-txt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.35; color: #18181b; }
.tb .tb-gloss-txt b { font-weight: 600; line-height: 1.3; text-wrap: balance; }
/* stranska jezika v eni vrstici (kot skrajšan naslov v seznamu), da sta enako visoka in plošča ne preraste telefona */
.tb .tb-gloss:not(.is-main) .tb-gloss-txt b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb .tb-gloss-price { margin-top: 3px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tb .tb-gloss-tr { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 11px; font-weight: 600; color: #71717a; }
.tb .tb-gloss-tr svg { width: 12px; height: 12px; }
.tb .tb-gloss-img { width: 52px; height: 36px; flex: 0 0 auto; border-radius: 8px; object-fit: contain; background: #ffffff; border: 1px solid #e4e4e7; }

.tb .tb-gloss.is-main .tb-gloss-txt { font-size: 16px; }
.tb .tb-gloss.is-main .tb-gloss-price { margin-top: 4px; font-size: 16px; }
.tb .tb-gloss.is-main .tb-gloss-tr { margin-top: 8px; font-size: 13px; color: #0a7aa3; }
.tb .tb-gloss.is-main .tb-gloss-tr svg { width: 14px; height: 14px; }
.tb .tb-gloss.is-main .tb-gloss-img { width: 88px; height: 58px; border-radius: 10px; }

/* ============================================================
   3) POGOSTA VPRAŠANJA (nativni <details>, brez skripte)
   ============================================================ */

.tb .tb-faq {
  background: var(--tb-paper);
  padding: 120px 0 128px;
}

.tb .tb-faq-in { max-width: 808px; }

.tb .tb-h2-center { text-align: center; }

.tb .tb-faq-sub {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
  color: var(--tb-body);
}

.tb .tb-faq-sub a { color: var(--tb-accent); text-decoration: underline; text-underline-offset: 3px; }

.tb .tb-faq-list {
  margin-top: 48px;
  border-bottom: 1px solid var(--tb-line);
}

.tb .tb-faq-item { border-top: 1px solid var(--tb-line); }

.tb .tb-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tb-ink);
  cursor: pointer;
  list-style: none;
}

.tb .tb-faq-q::-webkit-details-marker { display: none; }
.tb .tb-faq-q:hover { color: var(--tb-accent); }
.tb .tb-faq-q:focus-visible { outline: 2px solid #0d9ecc; outline-offset: 4px; border-radius: 4px; }

.tb .tb-faq-q svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--tb-muted);
  transition: transform .25s var(--tb-ease);
}

.tb .tb-faq-item[open] .tb-faq-q svg { transform: rotate(180deg); }

.tb .tb-faq-a {
  max-width: 44em;
  margin: -6px 0 0;
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--tb-body);
  text-wrap: pretty;
}

/* ============================================================
   4) ZAKLJUČEK
   ============================================================ */

.tb .tb-close {
  background: var(--tb-close);
  padding: 120px 0 128px;
  text-align: center;
}

.tb .tb-lockup {
  --tb-lk: 40px;                /* višina znaka thatbike, vse ostalo je izpeljano iz nje */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin: 0 0 56px;
}

/* BAJK.SI: velike črke so enako visoke kot male črke thatbike, osnovnica besedila je na osnovnici
   thatbike, krog znaka visi pod njo kot v izvirnem logotipu. V images/logo.svg je pod osnovnico
   besedila 37,3 % višine in desno 8,8 % širine praznega, to odštejeta negativna robova. */
.tb .tb-lockup-old {
  display: block;
  height: calc(var(--tb-lk) * 1.6);
  margin: 0 calc(var(--tb-lk) * -.452) calc(var(--tb-lk) * -.597) 0;
  aspect-ratio: 240.75 / 75;    /* viewBox images/logo.svg */
  background: url(../images/logo.svg) no-repeat left center / contain;
  filter: invert(1);
}

.tb .tb-lockup-arrow { width: 42px; height: 26px; flex: 0 0 auto; color: #5cc9ec; }

.tb .tb-wordmark {
  display: block;
  flex: 0 0 auto;
  height: var(--tb-lk);
  aspect-ratio: 578.6 / 107.9;  /* viewBox images/custom_pages/thatbike/thatbike-logo.svg */
  background: url(../images/custom_pages/thatbike/thatbike-logo.svg) no-repeat center / contain;
  filter: invert(1);
}

.tb .tb-close-h {
  margin: 0;
  font-family: var(--tb-display);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.036em;
  color: #fff;
  text-wrap: balance;
}

.tb .tb-close-h span { display: block; color: #a1a1aa; }

.tb .tb-close-p {
  max-width: 32em;
  margin: 32px auto 0;
  font-size: 20px;
  line-height: 1.55;
  color: #d4d4d8;
  text-wrap: pretty;
}

/* opomba v zaključku */
.tb .tb-close-note {
  max-width: 34em;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.55;
  color: #a1a1aa;
  text-wrap: pretty;
}

.tb .tb-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.tb .tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 8px;
  font-family: var(--tb-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s var(--tb-ease);
}

.tb .tb-btn:active { transform: scale(.98); }
.tb .tb-btn:focus-visible { outline: 3px solid #5cc9ec; outline-offset: 3px; }

.tb .tb-btn-main { background: #ffffff; color: #18181b; }
.tb .tb-btn-main:hover { background: #e4e4e7; color: #18181b; }
.tb .tb-btn-alt { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.tb .tb-btn-alt:hover { background: rgba(255, 255, 255, .08); color: #ffffff; }

html[data-theme="dark"] .tb .tb-btn-main { background: var(--fd-solid, #dfe4ea); color: var(--fd-solid-text, #14171a); }

/* ============================================================
   TEMNI NAČIN
   ============================================================ */

html[data-theme="dark"] .tb {
  --tb-paper:      var(--fd-bg, #121417);
  --tb-band:       var(--fd-surface, #1a1d21);
  --tb-ink:        var(--fd-text, #e2e6ea);
  --tb-ink-strong: #f1f3f5;
  --tb-body:       #c3c9d1;
  --tb-muted:      var(--fd-text-muted, #a6adb6);
  --tb-line:       var(--fd-border, #2f353c);
  --tb-accent:     #4fc3e8;

  --tb-card:       var(--fd-surface-2, #22262b);

  --tb-panel-a:    #253049;
  --tb-panel-b:    #171d2b;
  --tb-glow:       rgba(196, 98, 52, .42);

  --tb-close:      #0b0c0e;
}

html[data-theme="dark"] .tb .tb-flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
html[data-theme="dark"] .tb .tb-lockup-old,
html[data-theme="dark"] .tb .tb-wordmark,
html[data-theme="dark"] .tb .tb-h1-logo { filter: invert(1) brightness(.88); }
/* ============================================================
   ODZIVNOST
   ============================================================ */

@media (max-width: 1000px) {
  .tb .tb-tiles > .tb-tile { gap: 48px; }
}

@media (max-width: 760px) {
  .tb .tb-apps { padding: 24px 16px 32px; }
  .tb .tb-apps-row { grid-template-columns: repeat(2, minmax(0, 162px)); gap: 10px; }
  .tb .tb-app-web { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }   /* trije v vrsti ne gredo: splet zgoraj, trgovini pod njim */
  .tb .tb-app { padding: 0 10px; gap: 8px; }
  .tb .tb-app i { width: 24px; }
  .tb .tb-app-t { font-size: 16px; }
  .tb .tb-wrap { padding: 0 20px; }
  .tb .tb-hero { padding-top: 40px; }
  .tb .tb-lead { font-size: 16.5px; }
  .tb .tb-btn { flex: 1 1 140px; min-width: 0; }

  .tb .tb-arc { --R: 2650px; --W: 172px; --fade: 90px; height: 272px; margin-top: 28px; -webkit-mask-image: none; mask-image: none; }
  .tb .tb-ring { top: calc(22px + var(--R)); }
  .tb .tb-rc-body { gap: 3px; padding: 9px 11px 11px; }
  .tb .tb-rc-t { font-size: 13px; }
  .tb .tb-rc-p { font-size: 14.5px; }
  .tb .tb-rc-w { font-size: 12px; }
  .tb .tb-rc-w .tb-flag { width: 13px; height: 13px; }

  .tb .tb-feats { padding: 72px 0; }
  .tb .tb-tiles { gap: 72px; }
  .tb .tb-tiles > .tb-tile { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tb .tb-tile-copy { grid-column: 1; grid-row: 2; }
  .tb .tb-tile-vis { grid-row: 1; }
  .tb .tb-tile-h { font-size: 26px; }
  .tb .tb-mosaic { gap: 10px; }
  .tb .tb-mos-col { flex-basis: 120px; width: 120px; }
  .tb .tb-mos-col:nth-child(3) { display: none; }   /* trije stolpci bi bili na telefonu premajhni ali čez vso širino */
  .tb .tb-mos-col > .tb-mos-item { margin-bottom: 10px; border-radius: 10px; }
  .tb .tb-mos-col:nth-child(2) { margin-top: -64px; }
  .tb .tb-tile-a .tb-tile-vis::after { --tb-fade: 56px; }
  .tb .tb-mos-p { padding: 7px 9px 0; font-size: 13px; }
  .tb .tb-mos-w { gap: 5px; padding: 2px 9px 8px; font-size: 11px; }
  .tb .tb-mos-w .tb-flag { width: 12px; height: 12px; }
  .tb .tb-tile-vis-reach { gap: 10px; }
  .tb .tb-pill { padding: 8px 13px; font-size: 13px; }
  .tb .tb-sold { width: 224px; border-radius: 14px; }
  .tb .tb-sold-body { gap: 3px; padding: 12px 14px 14px; }
  .tb .tb-sold-p { font-size: 18px; }
  .tb .tb-sold-t { font-size: 14px; }
  .tb .tb-sold-w { margin-top: 4px; font-size: 12.5px; }
  .tb .tb-sold-w .tb-flag { width: 14px; height: 14px; }
  .tb .tb-sold-badge { top: 10px; left: 10px; padding: 5px 11px; font-size: 12.5px; }
  .tb .tb-gloss-stack { width: 88%; gap: 12px; }
  .tb .tb-gloss { padding: 9px 10px 9px 18px; }
  .tb .tb-gloss-txt { font-size: 12px; }
  .tb .tb-gloss-img { width: 44px; height: 30px; }
  .tb .tb-gloss.is-main { padding: 14px 12px 14px 22px; }
  .tb .tb-gloss.is-main .tb-gloss-txt,
  .tb .tb-gloss.is-main .tb-gloss-price { font-size: 14px; }
  .tb .tb-gloss.is-main .tb-gloss-tr { font-size: 12px; }
  .tb .tb-gloss.is-main .tb-gloss-img { width: 64px; height: 44px; }  .tb .tb-tile-p { font-size: 16px; }

  .tb .tb-faq { padding: 80px 0 88px; }
  .tb .tb-faq-list { margin-top: 32px; }
  .tb .tb-faq-q { padding: 18px 0; font-size: 16px; }
  .tb .tb-faq-a { font-size: 15.5px; }

  .tb .tb-close { padding: 88px 0 96px; }
  .tb .tb-lockup { --tb-lk: calc(min(140px, 100vw - 216px) / 5.363); gap: 14px; margin-bottom: 40px; }  /* thatbike do 140 px širok, do 320 px v eni vrstici */
  .tb .tb-lockup-arrow { width: 28px; height: 18px; }
  .tb .tb-close-p { font-size: 17px; }
}

/* tema na telefonu: section brez zgornjega odmika (style-child.css, ≤768)
   in s spodnjim 20 px (responsive.css, ≤767) */
@media (max-width: 768px) {
  .tb { margin-top: -20px; }
}

@media (max-width: 767px) {
  .tb { margin-bottom: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tb .tb-ring { animation: none; }
}
